Scenario: [1.1:82]
5255c080-5f4e-4f7a-8a2c-6ac9d0103288
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.214 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
11
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5255c080-5f4e-4f7a-8a2c-6ac9d0103288'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:55:49.807 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:49.809 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:49.810 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:49.810 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:55:49.812 [print] RIVM
57
* print operateson
1
04:55:49.812 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:55:49.815 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:49.818 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:55:49.819 [print] "true";"true";"true"
76
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
8
78
* eval db.writeln('"5255c080-5f4e-4f7a-8a2c-6ac9d0103288","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.2:82]
d796fd8d-b1e0-465c-a55b-1e9fe885fc3d
ms: 667
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.229 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
4
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
2
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd796fd8d-b1e0-465c-a55b-1e9fe885fc3d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
628
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd796fd8d-b1e0-465c-a55b-1e9fe885fc3d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:55:49.881 [print] https://www.broinspireservices.nl/wms/osgegmw-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
04:55:49.884 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:49.885 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:49.885 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:49.887 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:55:49.887 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=f99e915a-75e5-4c36-97f2-61eff692d85b&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
2
64
* print corConformanceHref
0
04:55:49.891 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:49.893 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
04:55:49.895 [print] "true";"false"
76
* eval db.writeln('"d796fd8d-b1e0-465c-a55b-1e9fe885fc3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d796fd8d-b1e0-465c-a55b-1e9fe885fc3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d796fd8d-b1e0-465c-a55b-1e9fe885fc3d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.3:82]
ca71572f-a498-4ca6-aa60-d4c4c4d59e2e
ms: 643
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.230 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
605
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca71572f-a498-4ca6-aa60-d4c4c4d59e2e'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:49.855 [print] https://inspire.caris.nl/geoserver/gnwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:49.856 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
0
04:55:49.861 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:49.861 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:49.862 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:49.863 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:49.865 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:49.869 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:49.871 [print] "true";"true"
76
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"ca71572f-a498-4ca6-aa60-d4c4c4d59e2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.4:82]
feeae7d3-7485-4a39-895c-ed65e945ced0
ms: 683
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.239 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
8
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'feeae7d3-7485-4a39-895c-ed65e945ced0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
651
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'feeae7d3-7485-4a39-895c-ed65e945ced0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:49.912 [print] https://www.broinspireservices.nl/arcgis/services/inspire/inspire_regis_rd/MapServer/WMSServer?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:49.913 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:49.914 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:49.915 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:49.916 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:55:49.917 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=E7D9F0D6-2B8D-6699-F26E-4A781228F2DD&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:49.919 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:49.920 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:49.921 [print] "true";"true"
76
* eval db.writeln('"feeae7d3-7485-4a39-895c-ed65e945ced0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"feeae7d3-7485-4a39-895c-ed65e945ced0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"feeae7d3-7485-4a39-895c-ed65e945ced0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.5:82]
bd14098b-44e6-47e5-959d-f40dda65da5a
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.832 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bd14098b-44e6-47e5-959d-f40dda65da5a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bd14098b-44e6-47e5-959d-f40dda65da5a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:50.370 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:50.371 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:50.372 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:50.372 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:50.373 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:55:50.373 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:50.375 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:50.376 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:50.377 [print] "false";"false"
76
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"bd14098b-44e6-47e5-959d-f40dda65da5a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.6:82]
7b4a0b26-5885-45cd-a99d-27887cff68e5
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.880 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
2
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
6
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b4a0b26-5885-45cd-a99d-27887cff68e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
538
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b4a0b26-5885-45cd-a99d-27887cff68e5'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:50.438 [print] https://www.broinspireservices.nl/wms/ossosgm-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:55:50.439 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:50.440 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:50.441 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:55:50.444 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:50.444 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:50.446 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:50.447 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:50.450 [print] "true";"false"
76
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7b4a0b26-5885-45cd-a99d-27887cff68e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.7:82]
95e2c712-1b91-4f24-9453-c56b95227717
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.900 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '95e2c712-1b91-4f24-9453-c56b95227717'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '95e2c712-1b91-4f24-9453-c56b95227717'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
4
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:50.456 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:50.457 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:55:50.458 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:50.459 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:50.459 [print] RIVM
57
* print operateson
0
04:55:50.460 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:50.463 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:50.464 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:50.464 [print] "true";"true";"true"
76
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"95e2c712-1b91-4f24-9453-c56b95227717","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.8:82]
b4485d59-a945-4940-a2f5-3ce7de6a947b
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:49.927 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4485d59-a945-4940-a2f5-3ce7de6a947b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:50.489 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:55:50.490 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:55:50.492 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:55:50.493 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:50.493 [print] RIVM
57
* print operateson
0
04:55:50.494 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:50.496 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:50.498 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
04:55:50.501 [print] "true";"true";"true"
76
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b4485d59-a945-4940-a2f5-3ce7de6a947b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.9:82]
f2d2cd9d-7410-485a-95e0-c1b885243eaf
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:50.381 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2d2cd9d-7410-485a-95e0-c1b885243eaf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:50.916 [print] https://inspire.caris.nl/geoserver/auwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:50.917 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:50.918 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:50.919 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:55:50.921 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:55:50.921 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:50.924 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:50.925 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:50.927 [print] "true";"true"
76
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f2d2cd9d-7410-485a-95e0-c1b885243eaf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.10:82]
e29b19de-d191-47f2-b944-5056a7674cce
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:50.455 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e29b19de-d191-47f2-b944-5056a7674cce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e29b19de-d191-47f2-b944-5056a7674cce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:50.976 [print] https://inspire.caris.nl/gs5/am/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:50.977 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:50.978 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:50.979 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:50.980 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:55:50.980 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:50.982 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:50.984 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:50.985 [print] "true";"true"
76
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"e29b19de-d191-47f2-b944-5056a7674cce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.11:82]
0606e8cb-fa51-402c-a3be-19fd724b0a10
ms: 764
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:50.471 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0606e8cb-fa51-402c-a3be-19fd724b0a10'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
706
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0606e8cb-fa51-402c-a3be-19fd724b0a10'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
5
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
17
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:51.208 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:55:51.210 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:51.212 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:51.212 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
9
56
* print organisationpath
0
04:55:51.222 [print] RIVM
57
* print operateson
0
04:55:51.222 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:51.224 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
1
04:55:51.227 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:51.228 [print] "true";"true";"true"
76
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
6
78
* eval db.writeln('"0606e8cb-fa51-402c-a3be-19fd724b0a10","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.12:82]
91041d33-54f8-40f1-8965-a867ba00cab8
ms: 756
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:50.506 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91041d33-54f8-40f1-8965-a867ba00cab8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
706
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91041d33-54f8-40f1-8965-a867ba00cab8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
5
45
* print connectUrl
0
04:55:51.226 [print] https://inspire.caris.nl/geoserver2/gn/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
3
04:55:51.230 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:55:51.232 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:51.232 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
7
04:55:51.233 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:51.240 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=34e95842-4e4e-46de-9198-79e8cd4d30dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
6
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:55:51.249 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:51.256 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:51.257 [print] "true";"true"
76
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"91041d33-54f8-40f1-8965-a867ba00cab8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
10
Scenario: [1.13:82]
745968a3-37af-4406-988e-ec595f58c7fe
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:50.931 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
1
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '745968a3-37af-4406-988e-ec595f58c7fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '745968a3-37af-4406-988e-ec595f58c7fe'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:51.468 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:51.469 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:51.470 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:51.470 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:51.471 [print] RIVM
57
* print operateson
0
04:55:51.471 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:51.473 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:51.475 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:51.476 [print] "true";"true";"true"
76
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"745968a3-37af-4406-988e-ec595f58c7fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.14:82]
c7dad4b9-42a8-452f-a33b-d4938ed22142
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:50.992 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7dad4b9-42a8-452f-a33b-d4938ed22142'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:51.523 [print] https://inspire.caris.nl/gs5/MarineRegion/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:51.524 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:51.525 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:51.526 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:51.527 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:55:51.527 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:51.529 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:51.531 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:51.532 [print] "true";"true"
76
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c7dad4b9-42a8-452f-a33b-d4938ed22142","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.15:82]
702060c1-b3fd-44ec-8cc6-d4249d150110
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:51.252 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
4
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '702060c1-b3fd-44ec-8cc6-d4249d150110'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '702060c1-b3fd-44ec-8cc6-d4249d150110'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
1
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
5
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:51.795 [print] http://services.inspire-provincies.nl/HabitatsAndBiotopes/services/download_HB?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:51.796 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:51.797 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:51.797 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:51.798 [print] Interprovinciaal Overleg
57
* print operateson
0
04:55:51.798 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:51.799 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:51.802 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:51.803 [print] "false";"true";"true"
76
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"702060c1-b3fd-44ec-8cc6-d4249d150110","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.16:82]
f3e68b05-f5c8-4796-bc67-33a3db1c1d65
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:51.274 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
2
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f3e68b05-f5c8-4796-bc67-33a3db1c1d65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:51.821 [print] https://inspire.caris.nl/geoserver/mu/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:51.822 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:51.823 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:51.824 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
04:55:51.826 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:51.826 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4cda487b-c467-490c-a843-6563fec016be#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:51.828 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:51.830 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:51.831 [print] "true";"true"
76
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f3e68b05-f5c8-4796-bc67-33a3db1c1d65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.17:82]
1a8d5470-8c5e-477a-ab6b-4893b6d21ab6
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:51.480 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1a8d5470-8c5e-477a-ab6b-4893b6d21ab6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1a8d5470-8c5e-477a-ab6b-4893b6d21ab6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:55:52.010 [print] https://www.broinspireservices.nl/wms/osgebor-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.011 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.012 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.012 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:52.014 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:52.014 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6c1cf452-8c62-4046-99ab-640a5e184f9c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.016 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:52.017 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.018 [print] "true";"false"
76
* eval db.writeln('"1a8d5470-8c5e-477a-ab6b-4893b6d21ab6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1a8d5470-8c5e-477a-ab6b-4893b6d21ab6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1a8d5470-8c5e-477a-ab6b-4893b6d21ab6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.18:82]
9fd2324b-9e02-4eab-bd4a-8e2be4fcd545
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:51.538 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9fd2324b-9e02-4eab-bd4a-8e2be4fcd545'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:52.057 [print] https://inspire.rivm.nl/geoserver/airq/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.058 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.059 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.059 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:52.060 [print] RIVM
57
* print operateson
0
04:55:52.060 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
6
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.067 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:52.068 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.069 [print] "true";"true";"true"
76
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"9fd2324b-9e02-4eab-bd4a-8e2be4fcd545","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.19:82]
d467c2cc-4026-b80a-d4e1a9d2bf79
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:51.811 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd467c2cc-4026-b80a-d4e1a9d2bf79'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd467c2cc-4026-b80a-d4e1a9d2bf79'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:52.340 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/hy-n\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.341 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.342 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.342 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:52.343 [print] Beheer PDOK
57
* print operateson
0
04:55:52.343 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.345 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:52.346 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.347 [print] "true";"true"
76
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d467c2cc-4026-b80a-d4e1a9d2bf79","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.20:82]
87a382da-c6dc-403c-a006-2379eb6daaa6
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:51.836 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '87a382da-c6dc-403c-a006-2379eb6daaa6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '87a382da-c6dc-403c-a006-2379eb6daaa6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
5
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:55:52.361 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.362 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.363 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.364 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:55:52.365 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:55:52.366 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.370 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:52.371 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:55:52.373 [print] "true";"true"
76
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"87a382da-c6dc-403c-a006-2379eb6daaa6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.21:82]
5471a93b-cf18-43f5-9ddb-71987857435d
ms: 612
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.023 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5471a93b-cf18-43f5-9ddb-71987857435d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
575
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5471a93b-cf18-43f5-9ddb-71987857435d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
5
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:52.613 [print] https://www.broinspireservices.nl/wfs/oshhgqm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.613 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.614 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.614 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
8
56
* print organisationpath
0
04:55:52.623 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:52.623 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6050578f-0010-4bfa-b013-c8617b80ba62&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.624 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:52.627 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.630 [print] "true";"true"
76
* eval db.writeln('"5471a93b-cf18-43f5-9ddb-71987857435d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"5471a93b-cf18-43f5-9ddb-71987857435d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5471a93b-cf18-43f5-9ddb-71987857435d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
3
Scenario: [1.22:82]
2d1860f2-f8ba-457e-bd64-93cdabd69aee
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.075 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2d1860f2-f8ba-457e-bd64-93cdabd69aee'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:52.625 [print] https://inspire.caris.nl/geoserver/auwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.626 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:55:52.627 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
3
54
* print protocol
0
04:55:52.631 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:52.631 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:55:52.633 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4cda487b-c467-490c-a843-6563fec016be#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.635 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
5
68
* print corConformanceTitles
0
04:55:52.643 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.646 [print] "true";"true"
76
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"2d1860f2-f8ba-457e-bd64-93cdabd69aee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.23:82]
3d01c1ca-973c-4652-baa5-39458bb9e181
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.352 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3d01c1ca-973c-4652-baa5-39458bb9e181'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3d01c1ca-973c-4652-baa5-39458bb9e181'
6
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:52.909 [print] https://geodata.nationaalgeoregister.nl/schelpdierenpercelen/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.910 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.911 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.911 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:52.912 [print] Beheer PDOK
57
* print operateson
0
04:55:52.912 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.914 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:52.915 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.916 [print] "true";"true"
76
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3d01c1ca-973c-4652-baa5-39458bb9e181","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.24:82]
542b330b-d3c6-4617-b97f-693e5cfd1872
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.387 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '542b330b-d3c6-4617-b97f-693e5cfd1872'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '542b330b-d3c6-4617-b97f-693e5cfd1872'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:52.938 [print] https://www.broinspireservices.nl/wfs/osamepl-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:52.939 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:52.939 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:52.940 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:52.941 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:52.941 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=24de356e-ec4d-4a18-9903-6401d222b77c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:52.945 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:52.946 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:52.947 [print] "true";"true"
76
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"542b330b-d3c6-4617-b97f-693e5cfd1872","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.25:82]
a149d97f-0d55-462e-9956-5b47bea00a8d
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.647 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
2
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a149d97f-0d55-462e-9956-5b47bea00a8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a149d97f-0d55-462e-9956-5b47bea00a8d'
6
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:53.182 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:53.183 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:53.184 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:53.184 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:53.185 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:55:53.185 [print] https://haleconnect.com/services/bsp/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:53.187 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:53.189 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:53.190 [print] true
76
* eval db.writeln('"a149d97f-0d55-462e-9956-5b47bea00a8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a149d97f-0d55-462e-9956-5b47bea00a8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a149d97f-0d55-462e-9956-5b47bea00a8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.26:82]
fa3ecd49-4571-4eb3-84f3-2865f42934b2
ms: 569
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.653 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fa3ecd49-4571-4eb3-84f3-2865f42934b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:53.214 [print] https://www.gdngeoservices.nl/inspire/wfs/olie_en_gasvelden?service=WFS&request=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:53.215 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:53.216 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:53.217 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:53.218 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:53.218 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:53.220 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:53.221 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:53.222 [print] "true";"true"
76
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"fa3ecd49-4571-4eb3-84f3-2865f42934b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.27:82]
5dfccef3-9b52-47f2-bb02-66b74aaf3af8
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.920 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5dfccef3-9b52-47f2-bb02-66b74aaf3af8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
6
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:53.456 [print] https://inspire.caris.nl/geoserver/auwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:53.457 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:53.458 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:53.458 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:53.459 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:53.460 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=4d514a2b-4a7e-4686-b9ea-87cb3e17ed52&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:53.461 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:53.462 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:53.463 [print] "true";"true"
76
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5dfccef3-9b52-47f2-bb02-66b74aaf3af8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.28:82]
224d93f6-0e4e-41fe-8424-1ab11a6c55ed
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:52.960 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '224d93f6-0e4e-41fe-8424-1ab11a6c55ed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:53.488 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:53.489 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:53.490 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:53.490 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:53.491 [print] RIVM
57
* print operateson
0
04:55:53.492 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:53.494 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:53.495 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:53.497 [print] "true";"true";"true"
76
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"224d93f6-0e4e-41fe-8424-1ab11a6c55ed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.29:82]
364c5d7a-d6ec-11ea-87d0-0242ac130003
ms: 600
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:53.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '364c5d7a-d6ec-11ea-87d0-0242ac130003'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '364c5d7a-d6ec-11ea-87d0-0242ac130003'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
22
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
9
45
* print connectUrl
1
04:55:53.759 [print] #notpresent
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
1
04:55:53.763 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:53.764 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:53.765 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:53.766 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:53.767 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=2a379cc6-d16e-11ea-87d0-0242ac130003&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
4
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
11
04:55:53.783 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
2
68
* print corConformanceTitles
4
04:55:53.789 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:53.791 [print] "true";"true"
76
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"364c5d7a-d6ec-11ea-87d0-0242ac130003","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.30:82]
dda53ebc-bee7-4765-8f1f-6ac59b0aec39
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:53.227 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dda53ebc-bee7-4765-8f1f-6ac59b0aec39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
6
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
12
04:55:53.784 [print] https://www.broinspireservices.nl/wms/ossobor-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:55:53.785 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:53.787 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:53.787 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:53.788 [print] TNO Geologische Dienst Nederland
57
* print operateson
11
04:55:53.799 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
10
04:55:53.811 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:53.813 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
3
04:55:53.817 [print] "true";"false"
76
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"dda53ebc-bee7-4765-8f1f-6ac59b0aec39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.31:82]
a02c6566-e0ad-4fc1-b217-67cc1099dea2
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:53.468 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a02c6566-e0ad-4fc1-b217-67cc1099dea2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:54.021 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.022 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.023 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.024 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:54.025 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:55:54.025 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.027 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:54.029 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.030 [print] "false";"false"
76
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a02c6566-e0ad-4fc1-b217-67cc1099dea2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.32:82]
42da491e-d8b9-47ba-af65-acb15ea8a055
ms: 577
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:53.501 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '42da491e-d8b9-47ba-af65-acb15ea8a055'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
551
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42da491e-d8b9-47ba-af65-acb15ea8a055'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:55:54.062 [print] https://www.broinspireservices.nl/wms/osamepl-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.063 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.065 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.065 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:54.066 [print]
57
* print operateson
0
04:55:54.067 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=24de356e-ec4d-4a18-9903-6401d222b77c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
5
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.073 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:54.075 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.076 [print] "true";"false"
76
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"42da491e-d8b9-47ba-af65-acb15ea8a055","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.33:82]
257b960c-ece6-4e0f-b893-77b219c6133f
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:53.810 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
5
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '257b960c-ece6-4e0f-b893-77b219c6133f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '257b960c-ece6-4e0f-b893-77b219c6133f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:54.342 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.343 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.344 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.344 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
10
56
* print organisationpath
1
04:55:54.355 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
1
04:55:54.355 [print] https://haleconnect.com/services/bsp/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.357 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:54.359 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.360 [print] true
76
* eval db.writeln('"257b960c-ece6-4e0f-b893-77b219c6133f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"257b960c-ece6-4e0f-b893-77b219c6133f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"257b960c-ece6-4e0f-b893-77b219c6133f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.34:82]
82fa284e-8218-40e4-a593-c2f8a832c3d5
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:53.823 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
5
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82fa284e-8218-40e4-a593-c2f8a832c3d5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82fa284e-8218-40e4-a593-c2f8a832c3d5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:54.377 [print] https://www.gdngeoservices.nl/inspire/wms/olie_en_gasvelden?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.378 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.379 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.380 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
04:55:54.382 [print] TNO Geologische Dienst Nederland
57
* print operateson
1
04:55:54.383 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=b61a773c-ecad-4e60-93e9-0a4caac0b52f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.384 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:54.386 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.387 [print] "true";"false"
76
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"82fa284e-8218-40e4-a593-c2f8a832c3d5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.35:82]
a12ae6ca-b755-4707-884f-95c0d66f431a
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.035 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a12ae6ca-b755-4707-884f-95c0d66f431a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a12ae6ca-b755-4707-884f-95c0d66f431a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:54.570 [print] https://inspire.caris.nl/gs5/MarineRegion/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.571 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.571 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.571 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:54.572 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:54.572 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f44dac86-2228-412f-8355-e56446ca9933#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.574 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:54.575 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.576 [print] "true";"true"
76
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a12ae6ca-b755-4707-884f-95c0d66f431a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.36:82]
c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.089 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:54.637 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.638 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.639 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.639 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:54.640 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:54.640 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
5
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.646 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:54.647 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.648 [print] "true";"true"
76
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c35c7421-f3ef-4bfb-afcc-ca15d03b8e6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.37:82]
b7880739-a701-4cc0-bb32-2bba61fa8924
ms: 512
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.364 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b7880739-a701-4cc0-bb32-2bba61fa8924'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
496
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b7880739-a701-4cc0-bb32-2bba61fa8924'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:54.870 [print] https://www.gdngeoservices.nl/inspire/wms/aardwarmte?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.870 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.871 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.872 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:54.872 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:54.873 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.874 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:54.875 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.876 [print] "true";"false"
76
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b7880739-a701-4cc0-bb32-2bba61fa8924","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.38:82]
f39d198a-1e69-43cc-b359-cc60a8c22d28
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.391 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
539
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f39d198a-1e69-43cc-b359-cc60a8c22d28'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:54.940 [print] https://inspire.rivm.nl/sos/eaq/service?service=AQD&version=1.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:54.941 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:54.942 [print] OGC:SOS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:54.942 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:54.943 [print] RIVM
57
* print operateson
0
04:55:54.944 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=733559a5-201d-40e5-ad43-d1c7bae84d9f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af135cd8-d429-4fc7-b9e3-09e15217520d","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3ec8793-7747-4da0-b6c3-aa384446a586","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5800f3b0-2ea2-4231-8165-216a7b26867f","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d8f370e8-123c-4ab3-9410-04f728327ac6","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/en\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=500d396f-5ec6-4e4b-a151-5fb3cddd8082"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:54.946 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:54.947 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Voldoet aan de SDS interoperabilities specificaties.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Voldoet aan de download specificaties";"OGC Sensor Observation Service Interface Standard";"Conform OGC SOS specificaties"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:54.949 [print] "true";"true";"true"
76
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f39d198a-1e69-43cc-b359-cc60a8c22d28","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.39:82]
17ad94f6-4961-448b-a6f5-5368b7870409
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.580 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '17ad94f6-4961-448b-a6f5-5368b7870409'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17ad94f6-4961-448b-a6f5-5368b7870409'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:55.100 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:55.100 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:55.101 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.102 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.103 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:55.103 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/xml.metadata.get?uuid=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:55.105 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
2
04:55:55.108 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.109 [print] "true";"true"
76
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"17ad94f6-4961-448b-a6f5-5368b7870409","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.40:82]
ebd6ea46-ee7b-432f-83c4-058c889a790d
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.652 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd6ea46-ee7b-432f-83c4-058c889a790d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:55.178 [print] http:\/\/services.inspire-provincies.nl\/EnvironmentalMonitoringFacilities\/services\/download_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:55.179 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:55.180 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.180 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.182 [print] Interprovinciaal Overleg
57
* print operateson
0
04:55:55.182 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:55.184 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:55.185 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.187 [print] "false";"true";"true"
76
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ebd6ea46-ee7b-432f-83c4-058c889a790d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.41:82]
1009c2a4-4dba-49a5-b643-914ba8b80b52
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.880 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1009c2a4-4dba-49a5-b643-914ba8b80b52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1009c2a4-4dba-49a5-b643-914ba8b80b52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:55.420 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:55.421 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:55.422 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.423 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.424 [print] KNMI
57
* print operateson
0
04:55:55.424 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:55.426 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:55.427 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.428 [print] true
76
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1009c2a4-4dba-49a5-b643-914ba8b80b52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.42:82]
755d488b-7b94-4883-95be-6aa279604f85
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:54.954 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '755d488b-7b94-4883-95be-6aa279604f85'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '755d488b-7b94-4883-95be-6aa279604f85'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:55.488 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:55.489 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:55.490 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.490 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.491 [print] RIVM
57
* print operateson
0
04:55:55.491 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:55.493 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:55.494 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.495 [print] "true";"true";"true"
76
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"755d488b-7b94-4883-95be-6aa279604f85","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.43:82]
68505be5-45c4-4889-a82a-125043bbdc44
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.113 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68505be5-45c4-4889-a82a-125043bbdc44'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68505be5-45c4-4889-a82a-125043bbdc44'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:55.642 [print] https://www.broinspireservices.nl/wfs/osgebor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:55.643 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:55.644 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.644 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.645 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:55.646 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6c1cf452-8c62-4046-99ab-640a5e184f9c&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:55.648 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:55.649 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.650 [print] "false";"true"
76
* eval db.writeln('"68505be5-45c4-4889-a82a-125043bbdc44","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"68505be5-45c4-4889-a82a-125043bbdc44","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"68505be5-45c4-4889-a82a-125043bbdc44","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.44:82]
664862cb-d426-4ee4-97ac-14c12b903b54
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.192 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
5
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
7
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '664862cb-d426-4ee4-97ac-14c12b903b54'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '664862cb-d426-4ee4-97ac-14c12b903b54'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
0
04:55:55.765 [print] https://www.broinspireservices.nl/wms/oshhgqm-a-v1.0?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:55.766 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
4
52
* print protocol2
0
04:55:55.770 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.771 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.772 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:55.772 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=6050578f-0010-4bfa-b013-c8617b80ba62&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
04:55:55.775 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:55.777 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.778 [print] "true";"true"
76
* eval db.writeln('"664862cb-d426-4ee4-97ac-14c12b903b54","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"664862cb-d426-4ee4-97ac-14c12b903b54","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"664862cb-d426-4ee4-97ac-14c12b903b54","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.45:82]
3094a1c4-3dd6-4e8e-9929-4a63dd66992e
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.432 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3094a1c4-3dd6-4e8e-9929-4a63dd66992e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3094a1c4-3dd6-4e8e-9929-4a63dd66992e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:55.962 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/download_PF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:55:55.964 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:55.965 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:55.966 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:55.967 [print] Interprovinciaal Overleg
57
* print operateson
0
04:55:55.967 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:55.968 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:55.970 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:55.971 [print] "false";"true";"true"
76
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"3094a1c4-3dd6-4e8e-9929-4a63dd66992e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.46:82]
c56433ca-35f2-4aaf-8bfa-35d8e0e52dda
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.500 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c56433ca-35f2-4aaf-8bfa-35d8e0e52dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:56.031 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.032 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.033 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.033 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.034 [print] RIVM
57
* print operateson
0
04:55:56.034 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.036 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:56.037 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:56.038 [print] "true";"true";"true"
76
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c56433ca-35f2-4aaf-8bfa-35d8e0e52dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.47:82]
081bcfff-5f66-467c-95d0-d88dcf9aa4cf
ms: 556
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.654 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '081bcfff-5f66-467c-95d0-d88dcf9aa4cf'
20
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:55:56.201 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.202 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.203 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.204 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.205 [print] RIVM
57
* print operateson
0
04:55:56.205 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.207 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:56.209 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:56.210 [print] "true";"true";"true"
76
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"081bcfff-5f66-467c-95d0-d88dcf9aa4cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.48:82]
23aa5150-fcc7-46ea-ae63-a7f198d8bc18
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.788 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '23aa5150-fcc7-46ea-ae63-a7f198d8bc18'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
6
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:56.318 [print] https://inspire.rivm.nl/geoserver/airq/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.319 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.320 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.320 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.322 [print] RIVM
57
* print operateson
0
04:55:56.322 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.324 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:56.326 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:56.327 [print] "true";"true";"true"
76
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"23aa5150-fcc7-46ea-ae63-a7f198d8bc18","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.49:82]
6b608d4e-5628-4d59-97fc-0322c57357b2
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:55.976 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6b608d4e-5628-4d59-97fc-0322c57357b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6b608d4e-5628-4d59-97fc-0322c57357b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:56.522 [print] https://geodata.nationaalgeoregister.nl/schelpdierenpercelen/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.523 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.524 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.524 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.525 [print] Beheer PDOK
57
* print operateson
0
04:55:56.525 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe0e1e5f-512f-4bb1-bbf8-4028d3dfa24f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.527 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:56.528 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:56.529 [print] "true";"true"
76
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"6b608d4e-5628-4d59-97fc-0322c57357b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.50:82]
73286af2-d0f4-4a62-9455-86ffa45ef279
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.042 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '73286af2-d0f4-4a62-9455-86ffa45ef279'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73286af2-d0f4-4a62-9455-86ffa45ef279'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:56.563 [print] https://www.gdngeoservices.nl/inspire/wfs/zoutvelden_en_productieputten?service=WFS&request=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.564 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.565 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.565 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.566 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:56.567 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.569 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:56.570 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:56.571 [print] "true";"true"
76
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"73286af2-d0f4-4a62-9455-86ffa45ef279","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.51:82]
b6d902f4-97e8-4bcc-ba87-e58134645ab7
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.215 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6d902f4-97e8-4bcc-ba87-e58134645ab7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:56.739 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.739 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.740 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.741 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.742 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:56.742 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.743 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:56.744 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
1
71
* print corConformancePass
0
04:55:56.746 [print] "true";"true"
76
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b6d902f4-97e8-4bcc-ba87-e58134645ab7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.52:82]
00e8746f-5031-413e-8343-9203c8ea82ee
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.332 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '00e8746f-5031-413e-8343-9203c8ea82ee'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '00e8746f-5031-413e-8343-9203c8ea82ee'
5
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:55:56.852 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/download_NZ?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:56.853 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:56.854 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:56.854 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:56.855 [print] Interprovinciaal Overleg
57
* print operateson
1
04:55:56.856 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:56.858 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:56.860 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.0";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:56.861 [print] "false";"true";"true"
76
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
4
78
* eval db.writeln('"00e8746f-5031-413e-8343-9203c8ea82ee","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.53:82]
1e01d173-96f4-40b1-8236-c6a9cfdac252
ms: 591
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.533 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e01d173-96f4-40b1-8236-c6a9cfdac252'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
571
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e01d173-96f4-40b1-8236-c6a9cfdac252'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:57.116 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.117 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.118 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.118 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.119 [print] KNMI
57
* print operateson
0
04:55:57.120 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.121 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.123 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.124 [print] true
76
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1e01d173-96f4-40b1-8236-c6a9cfdac252","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.54:82]
22bedc12-e9cb-4419-8e51-dfb375d46d01
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.576 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '22bedc12-e9cb-4419-8e51-dfb375d46d01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '22bedc12-e9cb-4419-8e51-dfb375d46d01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:57.134 [print] http://services.inspire-provincies.nl/NaturalRiskZones/services/view_NZ?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.135 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.135 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.136 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.137 [print] Interprovinciaal Overleg
57
* print operateson
0
04:55:57.137 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88f76a94-ee4d-4e0c-9fde-91b692403e39&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=08af1182-91fe-4d21-aa21-ee002953c3cc&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=d91126e0-e37b-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=667ebfb0-e37c-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.139 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.140 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.141 [print] "false";"true";"true"
76
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"22bedc12-e9cb-4419-8e51-dfb375d46d01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
6
Scenario: [1.55:82]
0426f471-f325-42ed-a775-81c397592e86
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.754 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0426f471-f325-42ed-a775-81c397592e86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0426f471-f325-42ed-a775-81c397592e86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:57.291 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.292 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.293 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.293 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.294 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:55:57.294 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.296 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.298 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.299 [print] "false";"false"
76
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0426f471-f325-42ed-a775-81c397592e86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.56:82]
a88b4ed1-49c1-4f91-991e-dc1cc7c575f7
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:56.872 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a88b4ed1-49c1-4f91-991e-dc1cc7c575f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:57.402 [print] http:\/\/services.inspire-provincies.nl\/ProductionAndIndustrialFacilities\/services\/view_PF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.403 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.404 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
1
54
* print protocol
0
04:55:57.405 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.407 [print] Interprovinciaal Overleg
57
* print operateson
0
04:55:57.407 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=8e986f37-74d7-4b6c-8026-87c960456423&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=afc450bd-65b3-4e59-b0fb-619869bf6ada&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.409 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:57.411 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.412 [print] "false";"true";"true"
76
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a88b4ed1-49c1-4f91-991e-dc1cc7c575f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.57:82]
4074b3c3-ca85-45ad-bc0d-b5fca8540z0b
ms: 518
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.128 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
500
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540z0b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:57.638 [print] https://service.pdok.nl/kadaster/adressen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.639 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.640 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.640 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.641 [print] Beheer PDOK
57
* print operateson
0
04:55:57.641 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.643 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.644 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.645 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540z0b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.58:82]
0bb27a13-76f1-4374-8d44-76e937198e8d
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.150 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bb27a13-76f1-4374-8d44-76e937198e8d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bb27a13-76f1-4374-8d44-76e937198e8d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:57.696 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Maritieme-grenzen-Noordzee.gml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.696 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.697 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.698 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.698 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:57.699 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.700 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.701 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.702 [print] "true";"true"
76
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bb27a13-76f1-4374-8d44-76e937198e8d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
2
Scenario: [1.59:82]
e5ef707f-6458-4567-8d2c-d24fe88ab5e9
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.303 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e5ef707f-6458-4567-8d2c-d24fe88ab5e9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:57.820 [print] https://www.gdngeoservices.nl/inspire/wms/zoutvelden_en_productieputten?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.821 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.821 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.821 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.822 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:57.822 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=e3b0da1e-0664-4025-b3f5-a54d74a26450&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.824 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.825 [print] "Technical Guidance for the implementation of INSPIRE View Services";"De service voldoet niet aan de richtlijnen van INSPIRE vanwege technische beperkingen";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.825 [print] "false";"false"
76
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e5ef707f-6458-4567-8d2c-d24fe88ab5e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.60:82]
914a6e0c-2aae-42f8-8425-2a047c245dab
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.417 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '914a6e0c-2aae-42f8-8425-2a047c245dab'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '914a6e0c-2aae-42f8-8425-2a047c245dab'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:57.943 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:57.944 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:57.945 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:57.945 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:57.946 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:55:57.946 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:57.948 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:57.948 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:57.949 [print] true
76
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"914a6e0c-2aae-42f8-8425-2a047c245dab","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.61:82]
823c5f01-5d11-481b-aa5f-e191d129365f
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.650 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '823c5f01-5d11-481b-aa5f-e191d129365f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '823c5f01-5d11-481b-aa5f-e191d129365f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:58.183 [print] https://service.pdok.nl/kadaster/gn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:58.184 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:58.185 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.186 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.187 [print] Beheer PDOK
57
* print operateson
0
04:55:58.187 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:58.188 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:58.189 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:58.190 [print] "true";"true"
76
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"823c5f01-5d11-481b-aa5f-e191d129365f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.62:82]
5be1b57b-2cac-4119-92eb-700346543d47
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.708 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be1b57b-2cac-4119-92eb-700346543d47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be1b57b-2cac-4119-92eb-700346543d47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:58.230 [print] https://inspire.caris.nl/geoserver/mu/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:58.231 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:58.232 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.232 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.233 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:58.234 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:58.235 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:58.236 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Dataset is geharmoniseerd";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:58.237 [print] "true";"true"
76
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"5be1b57b-2cac-4119-92eb-700346543d47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.63:82]
7d533012-21ad-4a5b-a97e-a76988270273
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.829 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d533012-21ad-4a5b-a97e-a76988270273'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d533012-21ad-4a5b-a97e-a76988270273'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:58.357 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:58.359 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:58.360 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.360 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.361 [print] KNMI
57
* print operateson
0
04:55:58.361 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:58.363 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:58.364 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:58.365 [print] true
76
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7d533012-21ad-4a5b-a97e-a76988270273","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.64:82]
2f28bd85-0afc-4dc1-85f3-dac55c1b485e
ms: 550
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:57.957 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
5
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2f28bd85-0afc-4dc1-85f3-dac55c1b485e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:58.493 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:58.494 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:58.495 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.495 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.496 [print] KNMI
57
* print operateson
0
04:55:58.496 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:58.499 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:58.500 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:58.501 [print] true
76
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
6
77
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2f28bd85-0afc-4dc1-85f3-dac55c1b485e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.65:82]
7af7b20d-3f8a-4d7f-8124-73980535a4f6
ms: 603
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.194 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7af7b20d-3f8a-4d7f-8124-73980535a4f6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7af7b20d-3f8a-4d7f-8124-73980535a4f6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
26
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
16
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:55:58.780 [print] https://www.broinspireservices.nl/arcgis/services/inspire/inspire_dgm_rd/MapServer/WMSServer?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
5
04:55:58.781 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:58.787 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.788 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.789 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:55:58.791 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
5
04:55:58.795 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:58.800 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:55:58.812 [print] "true";"true"
76
* eval db.writeln('"7af7b20d-3f8a-4d7f-8124-73980535a4f6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7af7b20d-3f8a-4d7f-8124-73980535a4f6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7af7b20d-3f8a-4d7f-8124-73980535a4f6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.66:82]
1e2cb7d4-934a-437a-809e-fda67b4a8824
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.241 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1e2cb7d4-934a-437a-809e-fda67b4a8824'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1e2cb7d4-934a-437a-809e-fda67b4a8824'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
13
04:55:58.790 [print] https://inspire.caris.nl/geoserver1/mu/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
04:55:58.792 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
3
04:55:58.793 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.797 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.798 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:58.810 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:58.812 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:58.814 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:58.815 [print] "true";"true"
76
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1e2cb7d4-934a-437a-809e-fda67b4a8824","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.67:82]
56093b94-7517-456d-a0d4-338aba3d8c74
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.369 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '56093b94-7517-456d-a0d4-338aba3d8c74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56093b94-7517-456d-a0d4-338aba3d8c74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:58.899 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:55:58.900 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:58.901 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:58.902 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:58.903 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:55:58.903 [print] https://haleconnect.com/services/bsp/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:58.905 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:58.907 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:58.908 [print] true
76
* eval db.writeln('"56093b94-7517-456d-a0d4-338aba3d8c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56093b94-7517-456d-a0d4-338aba3d8c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56093b94-7517-456d-a0d4-338aba3d8c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.68:82]
7dc30aed-0940-4e69-b34c-9f24b34078eb
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.512 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
2
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7dc30aed-0940-4e69-b34c-9f24b34078eb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
550
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dc30aed-0940-4e69-b34c-9f24b34078eb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:59.076 [print] https://inspire.rivm.nl/geoserver/wms?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.077 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.078 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.078 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.079 [print] RIVM
57
* print operateson
0
04:55:59.079 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.080 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:59.082 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.083 [print] "true";"true";"true"
76
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7dc30aed-0940-4e69-b34c-9f24b34078eb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.69:82]
a4c5aa6c-6c7f-45d7-9799-011edd83d9c2
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.818 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
6
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a4c5aa6c-6c7f-45d7-9799-011edd83d9c2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:59.368 [print] https://inspire.caris.nl/gs5/ProspectingAndMiningPermitArea/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.369 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.370 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.370 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.371 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:55:59.371 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c2225e5d-b46f-4e38-8445-ab10fd40c0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.372 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:59.373 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.374 [print] "true";"true"
76
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a4c5aa6c-6c7f-45d7-9799-011edd83d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.70:82]
f0eb64f9-8888-42e1-9550-bf91c32da4bc
ms: 578
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.818 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
10
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
553
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0eb64f9-8888-42e1-9550-bf91c32da4bc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:59.390 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.391 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.392 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.392 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.393 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:55:59.393 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.394 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:59.395 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.396 [print] "false";"false"
76
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0eb64f9-8888-42e1-9550-bf91c32da4bc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.71:82]
c1fb5983-5642-4334-962a-a341cef8c8ff
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:58.915 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
1
8
* def db = db.setfeature(karate.info.featureFileName)
1
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1fb5983-5642-4334-962a-a341cef8c8ff'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1fb5983-5642-4334-962a-a341cef8c8ff'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:59.454 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.455 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.455 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.455 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.456 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:55:59.456 [print] https://haleconnect.com/services/bsp/org.874.0cd1d698-2439-4ebd-ae2c-71dd98d9b3d1/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.458 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:59.459 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.460 [print] true
76
* eval db.writeln('"c1fb5983-5642-4334-962a-a341cef8c8ff","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c1fb5983-5642-4334-962a-a341cef8c8ff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c1fb5983-5642-4334-962a-a341cef8c8ff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.72:82]
ea4cb6a2-f637-413a-91cc-d58473c2f138
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.091 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
503
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ea4cb6a2-f637-413a-91cc-d58473c2f138'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:59.604 [print] http://services.inspire-provincies.nl/EnvironmentalMonitoringFacilities/services/view_EF?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.605 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.606 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.606 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.607 [print] Interprovinciaal Overleg
57
* print operateson
0
04:55:59.608 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=c829abeb-bfac-4224-8332-e7a9a89e692e&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=fe45c540-e37d-11e4-b571-0800200c9a66&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.610 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:59.612 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.613 [print] "false";"true";"true"
76
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ea4cb6a2-f637-413a-91cc-d58473c2f138","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.73:82]
94ed09fe-1753-4861-8c62-d66251b7cde3
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.377 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94ed09fe-1753-4861-8c62-d66251b7cde3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94ed09fe-1753-4861-8c62-d66251b7cde3'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:55:59.917 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.918 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.919 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.920 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.921 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:55:59.921 [print] https://haleconnect.com/services/bsp/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.923 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:59.924 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.926 [print] true
76
* eval db.writeln('"94ed09fe-1753-4861-8c62-d66251b7cde3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94ed09fe-1753-4861-8c62-d66251b7cde3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"94ed09fe-1753-4861-8c62-d66251b7cde3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.74:82]
a6098c24-4caf-4528-954c-672b9ec6cf78
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.399 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a6098c24-4caf-4528-954c-672b9ec6cf78'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a6098c24-4caf-4528-954c-672b9ec6cf78'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:55:59.944 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.945 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.946 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.947 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.948 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:55:59.948 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.950 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:55:59.951 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.953 [print] "false";"false"
76
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a6098c24-4caf-4528-954c-672b9ec6cf78","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.75:82]
a7e4bc31-60c1-4b78-bef1-eed768ceafa0
ms: 520
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.463 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
0
27
And param elementsetname = 'full'
1
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
498
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7e4bc31-60c1-4b78-bef1-eed768ceafa0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
5
45
* print connectUrl
0
04:55:59.975 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:55:59.975 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:55:59.976 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:55:59.976 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:55:59.978 [print] KNMI
57
* print operateson
1
04:55:59.978 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:55:59.980 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:55:59.982 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:55:59.983 [print] true
76
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"a7e4bc31-60c1-4b78-bef1-eed768ceafa0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.76:82]
060d1139-c371-4c1e-9890-55999adfa4f9
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.617 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '060d1139-c371-4c1e-9890-55999adfa4f9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '060d1139-c371-4c1e-9890-55999adfa4f9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:00.169 [print] https://inspire.caris.nl/geoserver/auwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:00.170 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:00.171 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:00.171 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:00.172 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:00.173 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=a5241416-8401-4623-be61-57ef50447a41&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:00.174 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:00.176 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:00.177 [print] "true";"true"
76
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"060d1139-c371-4c1e-9890-55999adfa4f9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.77:82]
589a9223-7588-4cd7-93aa-5373a12d8cea
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.930 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '589a9223-7588-4cd7-93aa-5373a12d8cea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '589a9223-7588-4cd7-93aa-5373a12d8cea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:00.460 [print] https://service.pdok.nl/kadaster/hy/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:00.461 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:00.462 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:00.463 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:00.464 [print] Beheer PDOK
57
* print operateson
0
04:56:00.464 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:00.465 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:00.466 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:00.467 [print] "true";"true"
76
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"589a9223-7588-4cd7-93aa-5373a12d8cea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.78:82]
49ff0584-a173-4098-824c-119edf8447f7
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.956 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '49ff0584-a173-4098-824c-119edf8447f7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ff0584-a173-4098-824c-119edf8447f7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:00.497 [print] https:\/\/services.rce.geovoorziening.nl\/rce\/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:00.498 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:00.499 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:00.499 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:00.500 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
04:56:00.500 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:00.502 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:00.503 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:00.504 [print] "true";"true"
76
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"49ff0584-a173-4098-824c-119edf8447f7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.79:82]
6d2fce74-fb25-4322-ab25-1be8a3bc7fd0
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:55:59.987 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
536
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d2fce74-fb25-4322-ab25-1be8a3bc7fd0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:00.531 [print] https://inspire.caris.nl/geoserver3/bathy_wcs/wcs?request=GetCapabilities&service=WCS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:00.533 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:00.533 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:00.534 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:00.534 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:00.535 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a322184d-6285-4856-bb78-f450b30ffc0e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:00.536 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:00.537 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services 2.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:00.538 [print] "true";"true"
76
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6d2fce74-fb25-4322-ab25-1be8a3bc7fd0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.80:82]
97b49056-8ace-426c-ae3e-bf7efe4c000f
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:00.186 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97b49056-8ace-426c-ae3e-bf7efe4c000f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97b49056-8ace-426c-ae3e-bf7efe4c000f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:00.731 [print] https://inspire.caris.nl/geoserver/auwms/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:00.732 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:00.733 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:00.733 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:00.734 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:00.734 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:00.736 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:00.737 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:00.737 [print] "true";"true"
76
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"97b49056-8ace-426c-ae3e-bf7efe4c000f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.81:82]
03c39474-aef9-4169-95da-9890af440b14
ms: 656
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:00.472 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c39474-aef9-4169-95da-9890af440b14'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
641
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c39474-aef9-4169-95da-9890af440b14'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:01.122 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.123 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.123 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.123 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:01.124 [print] RIVM
57
* print operateson
0
04:56:01.124 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.126 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:01.127 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.127 [print] "true";"true";"true"
76
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"03c39474-aef9-4169-95da-9890af440b14","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.82:82]
777f41ee-8269-4bbc-b0e4-f889c62be099
ms: 734
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:00.509 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '777f41ee-8269-4bbc-b0e4-f889c62be099'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
646
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '777f41ee-8269-4bbc-b0e4-f889c62be099'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:01.163 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.165 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.165 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.165 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:01.166 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:01.167 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.168 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
18
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:01.187 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.189 [print] "false";"false"
76
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
54
78
* eval db.writeln('"777f41ee-8269-4bbc-b0e4-f889c62be099","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.83:82]
6d86c14f-cccf-41e9-a58e-ead9d52ae35d
ms: 737
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:00.542 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6d86c14f-cccf-41e9-a58e-ead9d52ae35d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
700
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6d86c14f-cccf-41e9-a58e-ead9d52ae35d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
4
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
2
04:56:01.256 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/AM
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.257 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.259 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.259 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:01.260 [print] Informatiehuis Water
57
* print operateson
0
04:56:01.261 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.263 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
10
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:01.275 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Zie de gerefereerde specificatie.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
3
04:56:01.278 [print] "false";"true";"true"
76
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6d86c14f-cccf-41e9-a58e-ead9d52ae35d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.84:82]
dd414384-0bcb-4188-86e2-2843e12a579e
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:00.741 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd414384-0bcb-4188-86e2-2843e12a579e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd414384-0bcb-4188-86e2-2843e12a579e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:01.266 [print] https://www.broinspireservices.nl/wfs/ossosgm-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.267 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.268 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.268 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:01.269 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:01.269 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=a7fb2234-f7b4-4a03-b282-f10947f42fb1&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.271 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:01.272 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.273 [print] "true";"true"
76
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd414384-0bcb-4188-86e2-2843e12a579e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.85:82]
f61eec5c-cb91-40b6-ad35-9bca967006cc
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.131 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
552
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f61eec5c-cb91-40b6-ad35-9bca967006cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:01.693 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.694 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.695 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.695 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:01.696 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:01.696 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.698 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:01.701 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.702 [print] "false";"false"
76
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"f61eec5c-cb91-40b6-ad35-9bca967006cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.86:82]
cd370f58-0e54-48d6-b83b-ccd332bfb7c7
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.247 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cd370f58-0e54-48d6-b83b-ccd332bfb7c7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:01.777 [print] https://inspire.rivm.nl/geoserver/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.778 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.779 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.780 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:56:01.781 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
1
04:56:01.782 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.784 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:01.785 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.787 [print] "false";"false"
76
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cd370f58-0e54-48d6-b83b-ccd332bfb7c7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.87:82]
b81f9ce3-f612-4761-ba37-4c8afda9033a
ms: 597
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.285 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b81f9ce3-f612-4761-ba37-4c8afda9033a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
573
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b81f9ce3-f612-4761-ba37-4c8afda9033a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:56:01.871 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.872 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
2
04:56:01.874 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.875 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:56:01.877 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:01.877 [print] https://haleconnect.com/services/bsp/org.874.6f95c52b-e32a-43d5-a057-bac1f7ba2a42/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.879 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:01.880 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.881 [print] true
76
* eval db.writeln('"b81f9ce3-f612-4761-ba37-4c8afda9033a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b81f9ce3-f612-4761-ba37-4c8afda9033a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b81f9ce3-f612-4761-ba37-4c8afda9033a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.88:82]
ef2a7962-8bb4-483f-ca52-85123f579
ms: 576
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.282 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ca52-85123f579'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ca52-85123f579'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:01.848 [print] http://data.waterkwaliteitsportaal.nl/inspire/ds/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:01.849 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:01.850 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:01.850 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:01.852 [print] Informatiehuis Water
57
* print operateson
1
04:56:01.853 [print] ["http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=110f9ec6-4464-462e-9765-83d90cefbeab&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full","http:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/nl\/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:01.854 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:01.855 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:01.857 [print] "false";"true";"true"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"ef2a7962-8bb4-483f-ca52-85123f579","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.89:82]
2dd6c9df-bb47-40eb-af39-2d17f09b9bb9
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.707 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2dd6c9df-bb47-40eb-af39-2d17f09b9bb9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:02.240 [print] https://www.gdngeoservices.nl/inspire/wms/oppervlaktegeologie?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.241 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.242 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.242 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.243 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:02.243 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.245 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.246 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Onbekend"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.247 [print] "true";"false"
76
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"2dd6c9df-bb47-40eb-af39-2d17f09b9bb9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.90:82]
0d2ca03b-fb7b-466a-bb93-e2bfb596e394
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.792 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d2ca03b-fb7b-466a-bb93-e2bfb596e394'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:02.332 [print] https://inspire.caris.nl/gs5/pssa_nl/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.333 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.334 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.334 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.335 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:02.335 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=f1d27179-36eb-4376-8048-f51d2eb23a09&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.337 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.338 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.339 [print] "true";"true"
76
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0d2ca03b-fb7b-466a-bb93-e2bfb596e394","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.91:82]
1492fa63-96e2-406d-9a27-6affe281d848
ms: 563
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.868 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1492fa63-96e2-406d-9a27-6affe281d848'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1492fa63-96e2-406d-9a27-6affe281d848'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:02.423 [print] https://inspire.caris.nl/geoserver2/mu/ows?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.424 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.425 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.426 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.427 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:02.427 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.429 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.430 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.431 [print] "true";"true"
76
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"1492fa63-96e2-406d-9a27-6affe281d848","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.92:82]
76342a6d-452e-4e21-b5c0-81ff7b1be90e
ms: 599
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:01.885 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
582
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76342a6d-452e-4e21-b5c0-81ff7b1be90e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:02.476 [print] https://www.broinspireservices.nl/wfs/ossobor-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.477 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.477 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.478 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.479 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:02.479 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=9dd9bf30-36e6-45ae-b368-bdef2720bdde&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.481 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.482 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.483 [print] "true";"true"
76
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"76342a6d-452e-4e21-b5c0-81ff7b1be90e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.93:82]
97312a37-4ebf-4526-94e6-b29e90c2944a
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.251 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '97312a37-4ebf-4526-94e6-b29e90c2944a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '97312a37-4ebf-4526-94e6-b29e90c2944a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:02.771 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.772 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.773 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.773 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.774 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:02.774 [print] https://haleconnect.com/services/bsp/org.874.42282e73-5afb-424d-993a-9e0a0cd3eeca/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.775 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.776 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.777 [print] true
76
* eval db.writeln('"97312a37-4ebf-4526-94e6-b29e90c2944a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"97312a37-4ebf-4526-94e6-b29e90c2944a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"97312a37-4ebf-4526-94e6-b29e90c2944a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.94:82]
ff8f6da2-949e-4838-90f6-fd895a4a240f
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.343 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ff8f6da2-949e-4838-90f6-fd895a4a240f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:02.871 [print] https://inspire.rivm.nl/geoserver/wfs?
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.872 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.873 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.873 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.874 [print] RIVM
57
* print operateson
0
04:56:02.874 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.875 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.876 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.877 [print] "true";"true";"true"
76
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ff8f6da2-949e-4838-90f6-fd895a4a240f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.95:82]
923a666c-ee4f-496c-8c85-94d5f81e1f30
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.435 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '923a666c-ee4f-496c-8c85-94d5f81e1f30'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '923a666c-ee4f-496c-8c85-94d5f81e1f30'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:02.961 [print] https://inspire.caris.nl/gs5/am/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.962 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.963 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.963 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.964 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:02.964 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4617f0e0-6af4-4ac0-9044-31df9d03071c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:02.966 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:02.967 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:02.968 [print] "true";"true"
76
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"923a666c-ee4f-496c-8c85-94d5f81e1f30","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.96:82]
539ec652-482d-4806-a830-0458cf8be477
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.487 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '539ec652-482d-4806-a830-0458cf8be477'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
500
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '539ec652-482d-4806-a830-0458cf8be477'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:02.995 [print] http://data.waterkwaliteitsportaal.nl/inspire/vs/EF
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:02.996 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:02.997 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:02.997 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:02.998 [print] Informatiehuis Water
57
* print operateson
0
04:56:02.998 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=891ddc2d-8949-4a45-be96-c65b87c41f13&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.000 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.001 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Zie de gerefereerde specificatie.";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.002 [print] "false";"true";"true"
76
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
2
77
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"539ec652-482d-4806-a830-0458cf8be477","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.97:82]
7f79fc69-d0c7-4913-a05a-527c90453297
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.780 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7f79fc69-d0c7-4913-a05a-527c90453297'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f79fc69-d0c7-4913-a05a-527c90453297'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:03.303 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:03.304 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:03.305 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:03.306 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:03.307 [print] KNMI
57
* print operateson
0
04:56:03.307 [print] https://haleconnect.com/services/bsp/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.309 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.310 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.311 [print] true
76
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"7f79fc69-d0c7-4913-a05a-527c90453297","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.98:82]
55cf16e8-1c04-462c-b78a-e0d28823dd2e
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.881 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '55cf16e8-1c04-462c-b78a-e0d28823dd2e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:03.401 [print] https://haleconnect.com/ows/services/org.874.c4108a11-bdbb-4461-8902-423531561a7e_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:03.403 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:56:03.404 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:03.405 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:03.406 [print] KNMI
57
* print operateson
0
04:56:03.406 [print] https://haleconnect.com/services/bsp/org.874.c4108a11-bdbb-4461-8902-423531561a7e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.408 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.409 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.410 [print] true
76
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"55cf16e8-1c04-462c-b78a-e0d28823dd2e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.99:82]
ac3ee940-4f98-427c-a2d9-58696005d9c2
ms: 521
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:02.972 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ac3ee940-4f98-427c-a2d9-58696005d9c2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
504
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac3ee940-4f98-427c-a2d9-58696005d9c2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:03.485 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:03.486 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
2
04:56:03.487 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:03.488 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:03.489 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:03.489 [print] https://haleconnect.com/services/bsp/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.491 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.492 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.493 [print] true
76
* eval db.writeln('"ac3ee940-4f98-427c-a2d9-58696005d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ac3ee940-4f98-427c-a2d9-58696005d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ac3ee940-4f98-427c-a2d9-58696005d9c2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.100:82]
d293204f-6581-4b0a-811b-1dcce97adedd
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.007 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd293204f-6581-4b0a-811b-1dcce97adedd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd293204f-6581-4b0a-811b-1dcce97adedd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:03.551 [print] https://geodata.nationaalgeoregister.nl/publiekrechtelijkebeperking/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:03.552 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:03.553 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:03.553 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:03.554 [print] Beheer PDOK
57
* print operateson
0
04:56:03.554 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.556 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.558 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.559 [print] "true";"true"
76
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d293204f-6581-4b0a-811b-1dcce97adedd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.101:82]
b4b59b2c-156d-412e-b8f0-c0779402de80
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.315 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4b59b2c-156d-412e-b8f0-c0779402de80'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4b59b2c-156d-412e-b8f0-c0779402de80'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:03.838 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:03.839 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:03.840 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:03.840 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:03.841 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:03.841 [print] https://haleconnect.com/services/bsp/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.843 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.844 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.845 [print] true
76
* eval db.writeln('"b4b59b2c-156d-412e-b8f0-c0779402de80","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4b59b2c-156d-412e-b8f0-c0779402de80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b4b59b2c-156d-412e-b8f0-c0779402de80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.102:82]
KKHRN250-DXU9-167I-W6SO-8566T16B30VE
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.414 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'KKHRN250-DXU9-167I-W6SO-8566T16B30VE'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'KKHRN250-DXU9-167I-W6SO-8566T16B30VE'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:03.937 [print] https://www.broinspireservices.nl/arcgis/services/inspire/inspire_geotop_rd/MapServer/WMSServer?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:03.938 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:03.939 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:03.939 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:03.940 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:03.940 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=7D35598D-DFBF-C64D-0F1A-92A80A45EB14&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:03.942 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:03.943 [print] "Technical Guidance for the implementation of INSPIRE View Services";"Zie specificatie";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:03.944 [print] "true";"true"
76
* eval db.writeln('"KKHRN250-DXU9-167I-W6SO-8566T16B30VE","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"KKHRN250-DXU9-167I-W6SO-8566T16B30VE","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"KKHRN250-DXU9-167I-W6SO-8566T16B30VE","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.103:82]
35546103-58eb-4f61-a858-a6fbc5a7e814
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.497 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '35546103-58eb-4f61-a858-a6fbc5a7e814'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '35546103-58eb-4f61-a858-a6fbc5a7e814'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:04.023 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:04.024 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.025 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:04.025 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:04.026 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:04.026 [print] https://haleconnect.com/services/bsp/org.874.9934d92c-25d3-4fb8-9269-cf1ddbf9def0/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.028 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:04.029 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.030 [print] true
76
* eval db.writeln('"35546103-58eb-4f61-a858-a6fbc5a7e814","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"35546103-58eb-4f61-a858-a6fbc5a7e814","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"35546103-58eb-4f61-a858-a6fbc5a7e814","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.104:82]
742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.563 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:04.106 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:04.107 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.108 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:04.109 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:04.110 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:04.110 [print] https://haleconnect.com/services/bsp/org.874.bbb462ca-d8a0-4582-a9f6-9707e3e953a3/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.113 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:04.114 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.116 [print] true
76
* eval db.writeln('"742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"742cb4fc-62cb-4db1-86ce-9f0fd9e1a65b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.105:82]
c6308500-3439-4840-88cb-7532cabbfcb4
ms: 518
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.849 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c6308500-3439-4840-88cb-7532cabbfcb4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c6308500-3439-4840-88cb-7532cabbfcb4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:04.359 [print] https://haleconnect.com/ows/services/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:04.361 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.361 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:04.362 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:04.363 [print] KNMI
57
* print operateson
0
04:56:04.363 [print] https://haleconnect.com/services/bsp/org.874.512633c0-2899-4f9d-b2d1-1bd51cb2315a/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.364 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:04.365 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.367 [print] true
76
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c6308500-3439-4840-88cb-7532cabbfcb4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.106:82]
94e5b115-bece-4140-99ed-93b8f363948e
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:03.947 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94e5b115-bece-4140-99ed-93b8f363948e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94e5b115-bece-4140-99ed-93b8f363948e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:04.479 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:04.480 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.481 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:04.481 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:04.484 [print] Beheer PDOK
57
* print operateson
0
04:56:04.484 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.486 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:04.487 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.489 [print] "true";"true"
76
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"94e5b115-bece-4140-99ed-93b8f363948e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.107:82]
9e2e977a-16a6-42a4-a208-c4f70704f383
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.034 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9e2e977a-16a6-42a4-a208-c4f70704f383'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9e2e977a-16a6-42a4-a208-c4f70704f383'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:04.574 [print] https:\/\/service.pdok.nl\/lv\/bag\/wms\/v2_0?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:04.575 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.576 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:04.577 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:04.578 [print] Beheer PDOK
57
* print operateson
0
04:56:04.578 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.580 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:04.581 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.583 [print] "true";"true"
76
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9e2e977a-16a6-42a4-a208-c4f70704f383","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.108:82]
68d14b1c-71ad-4ce7-8267-45787a80c2d4
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.120 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68d14b1c-71ad-4ce7-8267-45787a80c2d4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68d14b1c-71ad-4ce7-8267-45787a80c2d4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:04.648 [print] https:\/\/geodata.nationaalgeoregister.nl\/inspire\/ad\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:04.649 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.651 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:04.651 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:04.652 [print] Beheer PDOK
57
* print operateson
0
04:56:04.652 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.654 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:04.656 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.657 [print] "true";"true"
76
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68d14b1c-71ad-4ce7-8267-45787a80c2d4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
5
Scenario: [1.109:82]
5b40b9b4-fcb2-4553-bcab-34824c43c992
ms: 552
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.381 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
2
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
4
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5b40b9b4-fcb2-4553-bcab-34824c43c992'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5b40b9b4-fcb2-4553-bcab-34824c43c992'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:04.920 [print] https://geodata.nationaalgeoregister.nl/inspire/ad/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
04:56:04.923 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:04.924 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
1
04:56:04.925 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:04.926 [print] Beheer PDOK
57
* print operateson
0
04:56:04.926 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a5f961e9-ebdd-41e2-b8e8-ab33ed340a83#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:04.928 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:04.932 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:04.933 [print] "true";"true"
76
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5b40b9b4-fcb2-4553-bcab-34824c43c992","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.110:82]
c99b1291-c51f-49c8-902d-5bd4148cbbde
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.492 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c99b1291-c51f-49c8-902d-5bd4148cbbde'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c99b1291-c51f-49c8-902d-5bd4148cbbde'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.019 [print] http:\/\/services.inspire-provincies.nl\/HabitatsAndBiotopes\/services\/view_HB?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.020 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.020 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.021 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.022 [print] Interprovinciaal Overleg
57
* print operateson
0
04:56:05.022 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/nl/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=88e2a6fa-b296-4ff4-bc30-fb87e2c1627e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.023 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.025 [print] "VERORDENING (EU) Nr. 1089\/2010 VAN DE COMMISSIE van 23 november 2010 ter uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad betreffende de interoperabiliteit van verzamelingen ruimtelijke gegevens en van diensten met betrekking tot ruimtelijke gegevens";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services 3.1";"conformant"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.025 [print] "false";"true";"true"
76
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c99b1291-c51f-49c8-902d-5bd4148cbbde","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.111:82]
7b8f44b5-6eae-4113-a835-84b8678c3dd5
ms: 548
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.586 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7b8f44b5-6eae-4113-a835-84b8678c3dd5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.127 [print] https://service.pdok.nl/rce/ps-ch/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.128 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.129 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.130 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.131 [print] Beheer PDOK
57
* print operateson
0
04:56:05.131 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.133 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.134 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.139 [print] "true";"true"
76
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7b8f44b5-6eae-4113-a835-84b8678c3dd5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.112:82]
7ab53b91-9df1-4c39-ba0e-06ec80ce512b
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.665 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7ab53b91-9df1-4c39-ba0e-06ec80ce512b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.207 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.207 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.208 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.208 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.209 [print] Beheer PDOK
57
* print operateson
0
04:56:05.209 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.211 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.212 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.213 [print] "true";"true"
76
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7ab53b91-9df1-4c39-ba0e-06ec80ce512b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.113:82]
101a2cc7-bb53-4a16-98f9-bab1f4745b01
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:04.937 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101a2cc7-bb53-4a16-98f9-bab1f4745b01'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.462 [print] https:\/\/service.pdok.nl\/rce\/ps-ch\/wfs\/v1_0?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.463 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.464 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.465 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.466 [print] Beheer PDOK
57
* print operateson
0
04:56:05.466 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.468 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.469 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.470 [print] "true";"true"
76
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"101a2cc7-bb53-4a16-98f9-bab1f4745b01","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.114:82]
b023459a-9f0e-4d53-8059-a794119abbed
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.029 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b023459a-9f0e-4d53-8059-a794119abbed'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b023459a-9f0e-4d53-8059-a794119abbed'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.553 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-cdda/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.554 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.555 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.555 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.556 [print] Beheer PDOK
57
* print operateson
0
04:56:05.556 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3387ef8a-9237-453a-aa4e-585d1e193550#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.558 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.559 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.561 [print] "true";"true"
76
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b023459a-9f0e-4d53-8059-a794119abbed","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.115:82]
5523cfd7-a72c-409e-a0c7-89b858aafa64
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.143 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5523cfd7-a72c-409e-a0c7-89b858aafa64'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5523cfd7-a72c-409e-a0c7-89b858aafa64'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.662 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.663 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.664 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.664 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.665 [print] Beheer PDOK
57
* print operateson
0
04:56:05.665 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.666 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.667 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.668 [print] "true";"true"
76
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5523cfd7-a72c-409e-a0c7-89b858aafa64","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.116:82]
26e2e9f4-be88-4c8c-bdef-94edfa93bde9
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.216 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26e2e9f4-be88-4c8c-bdef-94edfa93bde9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:05.733 [print] https://service.pdok.nl/bzk/bro-hydrogeology/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.734 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.734 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.735 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.736 [print] Beheer PDOK
57
* print operateson
2
04:56:05.737 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.739 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.740 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.740 [print] "true";"true"
76
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"26e2e9f4-be88-4c8c-bdef-94edfa93bde9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.117:82]
757a7c50-540d-4105-9135-73f09f700743
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.474 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '757a7c50-540d-4105-9135-73f09f700743'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '757a7c50-540d-4105-9135-73f09f700743'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:05.991 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:05.992 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:05.993 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:05.993 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:05.994 [print] Beheer PDOK
57
* print operateson
0
04:56:05.994 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:05.995 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:05.996 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:05.997 [print] "true";"true"
76
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"757a7c50-540d-4105-9135-73f09f700743","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.118:82]
94f241c2-43a2-42c3-8e9e-71976605aa0e
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.564 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '94f241c2-43a2-42c3-8e9e-71976605aa0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '94f241c2-43a2-42c3-8e9e-71976605aa0e'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
18
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:06.106 [print] https://service.pdok.nl/brt/top10nl/wms/v1_0?service=wms&request=getCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:06.107 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.108 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.109 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:06.110 [print] Beheer PDOK
57
* print operateson
0
04:56:06.111 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=29d5310f-dd0d-45ba-abad-b4ffc6b8785f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4b282988-cb91-4bbc-b147-f653014917cb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:06.114 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:06.116 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.118 [print] "true";"true"
76
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"94f241c2-43a2-42c3-8e9e-71976605aa0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.119:82]
e258f171-6f56-4d4d-8311-027b30213c2d
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.672 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e258f171-6f56-4d4d-8311-027b30213c2d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e258f171-6f56-4d4d-8311-027b30213c2d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:06.200 [print] https://service.pdok.nl/kadaster/cp/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:06.201 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.202 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.202 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:06.203 [print] Beheer PDOK
57
* print operateson
0
04:56:06.203 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:06.205 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:06.206 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.207 [print] "true";"true"
76
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e258f171-6f56-4d4d-8311-027b30213c2d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.120:82]
ac3a9efe-2154-4a4c-aae3-ea269044945d
ms: 555
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:05.744 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ac3a9efe-2154-4a4c-aae3-ea269044945d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ac3a9efe-2154-4a4c-aae3-ea269044945d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:06.287 [print] https://geodata.nationaalgeoregister.nl/bzk/bro-bodemkaart/wms/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:56:06.289 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.291 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.291 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:06.292 [print] Beheer PDOK
57
* print operateson
0
04:56:06.293 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:06.295 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:06.296 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.297 [print] "true";"true"
76
* eval db.writeln('"ac3a9efe-2154-4a4c-aae3-ea269044945d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ac3a9efe-2154-4a4c-aae3-ea269044945d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"ac3a9efe-2154-4a4c-aae3-ea269044945d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.121:82]
d1cb16ca-2029-454f-b3f1-f70bceaf62c1
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.000 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd1cb16ca-2029-454f-b3f1-f70bceaf62c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:06.531 [print] https:\/\/service.pdok.nl\/bzk\/bro-geomorfologischekaart\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:06.532 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.533 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.533 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:56:06.534 [print] Beheer PDOK
57
* print operateson
0
04:56:06.534 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f52e76f-c96d-4df3-a778-279c2164372b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:06.536 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:06.537 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.538 [print] #notpresent
76
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d1cb16ca-2029-454f-b3f1-f70bceaf62c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.122:82]
89b35a6c-c099-456b-8eaf-2b83c7a35c74
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.122 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '89b35a6c-c099-456b-8eaf-2b83c7a35c74'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:06.640 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:06.641 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.642 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.642 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:06.643 [print] Beheer PDOK
57
* print operateson
0
04:56:06.643 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:06.645 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:06.646 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.646 [print] "true";"true"
76
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"89b35a6c-c099-456b-8eaf-2b83c7a35c74","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.123:82]
d7d19437-f875-45b3-86cd-2fa3335479ec
ms: 519
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.212 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7d19437-f875-45b3-86cd-2fa3335479ec'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7d19437-f875-45b3-86cd-2fa3335479ec'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:06.724 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-np/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:06.725 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.726 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.727 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:06.728 [print] Beheer PDOK
57
* print operateson
0
04:56:06.728 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=247a1d15-0a67-40ce-85be-1403c08f15a8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:06.729 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:06.731 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.732 [print] "true";"true"
76
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d7d19437-f875-45b3-86cd-2fa3335479ec","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.124:82]
a7aeddf2-3b37-4668-9c75-de93d9326276
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.303 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a7aeddf2-3b37-4668-9c75-de93d9326276'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7aeddf2-3b37-4668-9c75-de93d9326276'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:06.821 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wms?request=Getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:06.822 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:06.823 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:06.823 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:06.824 [print] Beheer PDOK
57
* print operateson
0
04:56:06.824 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:06.826 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:06.827 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:06.827 [print] "true";"true"
76
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a7aeddf2-3b37-4668-9c75-de93d9326276","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.125:82]
63f622ef-46b3-411a-a2aa-045cabf1e3ac
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.542 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '63f622ef-46b3-411a-a2aa-045cabf1e3ac'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '63f622ef-46b3-411a-a2aa-045cabf1e3ac'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:07.059 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wfs/v1?SERVICE=WFS&REQUEST=GetCapabilities&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.060 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.061 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.061 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.062 [print] Beheer PDOK
57
* print operateson
0
04:56:07.062 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.063 [print] https://eur-lex.europa.eu/eli/reg/2010/1089
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.064 [print] "OGC WFS 1.0.0";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Deze service voldoet aan de specificaties voor spatial data services";"harmonised";"De service voldoet aan de requirements van de harmonised conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.065 [print] "true";"true";"true"
76
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"63f622ef-46b3-411a-a2aa-045cabf1e3ac","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.126:82]
25c69c01-8dfa-406f-bbcb-24feba25dcc6
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.650 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25c69c01-8dfa-406f-bbcb-24feba25dcc6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25c69c01-8dfa-406f-bbcb-24feba25dcc6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:07.210 [print] https://geodata.nationaalgeoregister.nl/provincies/ps/wms/v1?SERVICE=WMS&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.210 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.211 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.211 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.212 [print] Beheer PDOK
57
* print operateson
0
04:56:07.212 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.213 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.214 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.215 [print] "true";"true"
76
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"25c69c01-8dfa-406f-bbcb-24feba25dcc6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.127:82]
9ff1a13c-d1e0-4150-8523-91cb489ae1a4
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.735 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ff1a13c-d1e0-4150-8523-91cb489ae1a4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ff1a13c-d1e0-4150-8523-91cb489ae1a4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:07.266 [print] https://geodata.nationaalgeoregister.nl/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.267 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.268 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.268 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.269 [print] Beheer PDOK
57
* print operateson
2
04:56:07.272 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=701d4eb8-8aae-4708-bba5-3edf6987676d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=07d73b60-dfd6-4c54-9c82-9fac70c6c48e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d25fe199-2430-48fd-ad57-5b5f79f73cdf#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e536d943-ecff-4d7a-9500-cc31a263a6af#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=bbece924-9aab-4e00-8392-bce36b8f494e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=81ff84ec-42a4-4481-840b-12713bbb5d38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=af0c582f-9e6b-46e6-865a-fc3a2d5289b9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3eebf700-5abf-42e4-826c-03cfb497e366#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9d9f1738-aced-47c9-aaa0-c62474a2dcfb#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3229e4d7-4bcd-4b94-819d-8e62de69ce2e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.274 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:07.275 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.276 [print] "false";"true";"true"
76
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"9ff1a13c-d1e0-4150-8523-91cb489ae1a4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.128:82]
bc0b75c6-3eef-49de-aca2-8483024903c1
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:06.831 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bc0b75c6-3eef-49de-aca2-8483024903c1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc0b75c6-3eef-49de-aca2-8483024903c1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:07.346 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.347 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.348 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.348 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.349 [print] Beheer PDOK
57
* print operateson
0
04:56:07.350 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.352 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.353 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.354 [print] "true";"true"
76
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bc0b75c6-3eef-49de-aca2-8483024903c1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.129:82]
c21c6bf5-8899-4b46-8986-0f65eca05ed0
ms: 508
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.069 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
492
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c21c6bf5-8899-4b46-8986-0f65eca05ed0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:07.570 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnstedelijkafvalwater2015/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.570 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.571 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.571 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.572 [print] Beheer PDOK
57
* print operateson
0
04:56:07.572 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.574 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.575 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.576 [print] "true";"true"
76
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"c21c6bf5-8899-4b46-8986-0f65eca05ed0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.130:82]
0898d4a9-8fe6-46e9-8855-1242d8028970
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.219 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0898d4a9-8fe6-46e9-8855-1242d8028970'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0898d4a9-8fe6-46e9-8855-1242d8028970'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:07.734 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.735 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.736 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.736 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.737 [print] Beheer PDOK
57
* print operateson
0
04:56:07.737 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185f1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ror-9d8e-4758-83fx-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.738 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.739 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.740 [print] "true";"true"
76
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"0898d4a9-8fe6-46e9-8855-1242d8028970","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.131:82]
0080a9ce-b836-45bc-8fdf-07dcbe97101d
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.280 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0080a9ce-b836-45bc-8fdf-07dcbe97101d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:07.813 [print] https://service.pdok.nl/rce/ps-ch/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.813 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.814 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.814 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.815 [print] Beheer PDOK
57
* print operateson
0
04:56:07.815 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=493ab81b-75f8-4205-b030-6b2fd9eb4295#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.816 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.817 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.818 [print] "true";"true"
76
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0080a9ce-b836-45bc-8fdf-07dcbe97101d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.132:82]
037e55bd-a1dc-4fde-adfe-4610d3a3d5cb
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.358 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '037e55bd-a1dc-4fde-adfe-4610d3a3d5cb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:07.882 [print] https://service.pdok.nl/cbs/pd/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:07.883 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:07.884 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:07.884 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:07.885 [print] Beheer PDOK
57
* print operateson
0
04:56:07.885 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:07.887 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:07.888 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:07.889 [print] "true";"true"
76
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"037e55bd-a1dc-4fde-adfe-4610d3a3d5cb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.133:82]
54122631-d343-40be-9c28-e44626b37a0e
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.580 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '54122631-d343-40be-9c28-e44626b37a0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '54122631-d343-40be-9c28-e44626b37a0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
0
04:56:08.095 [print] https://service.pdok.nl/cbs/hh/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.096 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:08.097 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.097 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:56:08.098 [print] Beheer PDOK
57
* print operateson
0
04:56:08.099 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.100 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.102 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.103 [print] "true";"true"
76
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"54122631-d343-40be-9c28-e44626b37a0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.134:82]
13e4dff0-1e80-11e2-81c1-0800200c9a66
ms: 566
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.743 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '13e4dff0-1e80-11e2-81c1-0800200c9a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '13e4dff0-1e80-11e2-81c1-0800200c9a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
22
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:08.295 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.296 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:08.297 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.298 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.299 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:08.300 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
04:56:08.303 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.304 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.306 [print] "true";"true"
76
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
5
78
* eval db.writeln('"13e4dff0-1e80-11e2-81c1-0800200c9a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.135:82]
243c6401-9ed1-4cdd-b9a7-caff08813ce4
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.821 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '243c6401-9ed1-4cdd-b9a7-caff08813ce4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
8
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:08.352 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-EEZ-volgens-UNCLOS-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
1
04:56:08.356 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:08.357 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.357 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.359 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:08.359 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e8b84fae-00b3-49c1-80c1-df8f69f64e8c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.361 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.362 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.363 [print] "true";"true"
76
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"243c6401-9ed1-4cdd-b9a7-caff08813ce4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.136:82]
efb5222c-112a-4c57-9bbf-f2af918cb9b5
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:07.892 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
499
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'efb5222c-112a-4c57-9bbf-f2af918cb9b5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:08.401 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-aansluitende-zone-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.402 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
12
04:56:08.415 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.415 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.416 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:08.416 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4cda487b-c467-490c-a843-6563fec016be#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
12
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.430 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.431 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.432 [print] "true";"true"
76
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"efb5222c-112a-4c57-9bbf-f2af918cb9b5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.137:82]
1d3c777a-3527-4aa1-8573-d6aeeff115e5
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.106 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1d3c777a-3527-4aa1-8573-d6aeeff115e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
544
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1d3c777a-3527-4aa1-8573-d6aeeff115e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:08.659 [print] https://www.broinspireservices.nl/atom/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.660 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:08.661 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.661 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.662 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:08.662 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=E7D9F0D6-2B8D-6699-F26E-4A781228F2DD&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.663 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.664 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.665 [print] "true";"true"
76
* eval db.writeln('"1d3c777a-3527-4aa1-8573-d6aeeff115e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1d3c777a-3527-4aa1-8573-d6aeeff115e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1d3c777a-3527-4aa1-8573-d6aeeff115e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.138:82]
1512b29e-80d4-4677-bcae-a3f9f82a223d
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.314 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
6
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1512b29e-80d4-4677-bcae-a3f9f82a223d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1512b29e-80d4-4677-bcae-a3f9f82a223d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:08.857 [print] https://service.pdok.nl/brt/top10nl/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.858 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:08.859 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.859 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.860 [print] Beheer PDOK
57
* print operateson
0
04:56:08.860 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=29d5310f-dd0d-45ba-abad-b4ffc6b8785f&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.862 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.863 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.864 [print] "true";"true"
76
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1512b29e-80d4-4677-bcae-a3f9f82a223d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.139:82]
88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.368 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
4
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:08.898 [print] https://service.pdok.nl/kadaster/hy/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.899 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:08.900 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.900 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.901 [print] Beheer PDOK
57
* print operateson
0
04:56:08.902 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1c3afc74-cc34-44b7-938a-963e2350795a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.903 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.904 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.905 [print] "true";"true"
76
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88c6f637-ed7a-4d3a-8ff3-afc8a6b744d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.140:82]
bb85e473-c04a-42a6-9fdc-f0bb0239327e
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.437 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
4
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
1
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb85e473-c04a-42a6-9fdc-f0bb0239327e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:08.960 [print] https://service.pdok.nl/kadaster/gebouwen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:08.960 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:08.961 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:08.961 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:08.962 [print] Beheer PDOK
57
* print operateson
0
04:56:08.963 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:08.965 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:08.966 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:08.966 [print] "true";"true"
76
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bb85e473-c04a-42a6-9fdc-f0bb0239327e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.141:82]
e27e61d8-25b1-45ee-a2df-071312ba8a69
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.671 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e27e61d8-25b1-45ee-a2df-071312ba8a69'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e27e61d8-25b1-45ee-a2df-071312ba8a69'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:09.187 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwateractueel/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.188 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.188 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.189 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.189 [print] Beheer PDOK
57
* print operateson
0
04:56:09.189 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krw-782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.191 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.192 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.193 [print] "true";"true";"true"
76
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e27e61d8-25b1-45ee-a2df-071312ba8a69","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.142:82]
d84b0a71-4460-4e16-8a7e-5507f2e6bcbf
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.867 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd84b0a71-4460-4e16-8a7e-5507f2e6bcbf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:09.391 [print] https://service.pdok.nl/bzk/bro-grondwaterspiegeldiepte/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.392 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.393 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.393 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.394 [print] Beheer PDOK
57
* print operateson
0
04:56:09.394 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b756dabe-a331-42cd-b45e-f61828ee4534#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.396 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.397 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.398 [print] "true";"true"
76
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"d84b0a71-4460-4e16-8a7e-5507f2e6bcbf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.143:82]
b85d4a0a-c0f7-42f4-9316-b214d205ca38
ms: 516
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.909 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
501
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b85d4a0a-c0f7-42f4-9316-b214d205ca38'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:09.417 [print] http://inspire.rdw.nl/www/download/rdw-inspire.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.418 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.419 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.419 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.420 [print] RDW
57
* print operateson
0
04:56:09.421 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=fe2f9091-1962-4073-9e3b-3e4aeed488a5#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.423 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.424 [print] "Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Evaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Gecontroleerd met INSPIRE verordening"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.425 [print] "true";"true"
76
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b85d4a0a-c0f7-42f4-9316-b214d205ca38","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.144:82]
641a0f48-872b-4470-b130-e3d28e6bfdfb
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:08.970 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '641a0f48-872b-4470-b130-e3d28e6bfdfb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '641a0f48-872b-4470-b130-e3d28e6bfdfb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:09.486 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnmarienestrategie2018/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.487 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.488 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.488 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.489 [print] Beheer PDOK
57
* print operateson
0
04:56:09.489 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.490 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.491 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.492 [print] "true";"true"
76
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"641a0f48-872b-4470-b130-e3d28e6bfdfb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.145:82]
0d7ca7bc-99de-4539-af33-70b206f29355
ms: 501
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.196 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0d7ca7bc-99de-4539-af33-70b206f29355'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
488
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0d7ca7bc-99de-4539-af33-70b206f29355'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:09.691 [print] https://service.pdok.nl/kadaster/adressen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.692 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.693 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.693 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.694 [print] Beheer PDOK
57
* print operateson
0
04:56:09.694 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76091be7-358a-4a44-8182-b4139c96c6a4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.695 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.696 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.696 [print] "true";"true"
76
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0d7ca7bc-99de-4539-af33-70b206f29355","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.146:82]
f5660ac6-8031-4acc-832c-1d1b82b062ba
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.402 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f5660ac6-8031-4acc-832c-1d1b82b062ba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5660ac6-8031-4acc-832c-1d1b82b062ba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:09.929 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.930 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.931 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.931 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.932 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:09.932 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=11a292bd-9022-4a9f-b1bf-02f5c89ad74a&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.933 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.934 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.935 [print] "true";"true"
76
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f5660ac6-8031-4acc-832c-1d1b82b062ba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.147:82]
f1e26638-3b45-4dd5-9ad0-f7d3654700f1
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.428 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1e26638-3b45-4dd5-9ad0-f7d3654700f1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:09.951 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:09.952 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:09.953 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:09.953 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:09.954 [print] Beheer PDOK
57
* print operateson
0
04:56:09.954 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:09.956 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:09.956 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:09.957 [print] "true";"true"
76
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f1e26638-3b45-4dd5-9ad0-f7d3654700f1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.148:82]
559f7f5b-44fc-4003-9fb5-4d8c9aff6060
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.496 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '559f7f5b-44fc-4003-9fb5-4d8c9aff6060'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:10.014 [print] https://service.pdok.nl/kadaster/tn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:10.015 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:10.016 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:10.016 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:10.016 [print] Beheer PDOK
57
* print operateson
0
04:56:10.017 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:10.018 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:10.019 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:10.020 [print] "true";"true"
76
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"559f7f5b-44fc-4003-9fb5-4d8c9aff6060","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.149:82]
dc9fbc85-1263-4a1b-b001-7be701a6039e
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.700 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dc9fbc85-1263-4a1b-b001-7be701a6039e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:10.239 [print] https://service.pdok.nl/kadaster/plu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:10.240 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:10.240 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:10.240 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:10.241 [print] Beheer PDOK
57
* print operateson
0
04:56:10.241 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:10.242 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:10.243 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:10.244 [print] "true";"true"
76
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dc9fbc85-1263-4a1b-b001-7be701a6039e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.150:82]
91b1f8ca-63a0-4ce6-b7e1-456ee6945638
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.938 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '91b1f8ca-63a0-4ce6-b7e1-456ee6945638'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:10.454 [print] https://service.pdok.nl/rvo/schelpdierpercelen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:10.455 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:10.455 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:10.456 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:10.456 [print] Beheer PDOK
57
* print operateson
0
04:56:10.456 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:10.458 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:10.459 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:10.482 [print] "true";"true"
76
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"91b1f8ca-63a0-4ce6-b7e1-456ee6945638","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.151:82]
66805d91-a5f6-4265-bd36-ef13a429c97e
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:09.960 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '66805d91-a5f6-4265-bd36-ef13a429c97e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '66805d91-a5f6-4265-bd36-ef13a429c97e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:10.496 [print] https://geodata.nationaalgeoregister.nl/bzk/bro-bodemkaart/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:10.496 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:10.497 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:10.497 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:10.498 [print] Beheer PDOK
57
* print operateson
1
04:56:10.499 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ed960299-a147-4c1a-bc57-41ff83a2264f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:10.500 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:10.501 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:10.502 [print] #notpresent
76
* eval db.writeln('"66805d91-a5f6-4265-bd36-ef13a429c97e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"66805d91-a5f6-4265-bd36-ef13a429c97e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"66805d91-a5f6-4265-bd36-ef13a429c97e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.152:82]
fbe544b6-6e6f-43a0-80b9-ced1df78c434
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:10.031 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fbe544b6-6e6f-43a0-80b9-ced1df78c434'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:10.547 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:10.549 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:10.549 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:10.550 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:10.551 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:10.551 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:10.553 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:10.554 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:56:10.556 [print] "false";"false"
76
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"fbe544b6-6e6f-43a0-80b9-ced1df78c434","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.153:82]
37308f90-e619-4b62-ae9e-e656bb3f1649
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:10.247 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37308f90-e619-4b62-ae9e-e656bb3f1649'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37308f90-e619-4b62-ae9e-e656bb3f1649'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:10.776 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:10.777 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:10.778 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:10.779 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:10.780 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:10.780 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:10.782 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:10.783 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:10.784 [print] "false";"false"
76
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37308f90-e619-4b62-ae9e-e656bb3f1649","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.154:82]
ef2a7962-8bb4-483f-ac78-851b619f357f
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:10.486 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ef2a7962-8bb4-483f-ac78-851b619f357f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ef2a7962-8bb4-483f-ac78-851b619f357f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:11.019 [print] https://services.rce.geovoorziening.nl/www/download/nl.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.020 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.021 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.021 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.022 [print] Rijksdienst voor het Cultureel Erfgoed
57
* print operateson
0
04:56:11.022 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6f84efeb-fc1d-4565-a721-80735ea57dbd#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=4e2ef670-cddd-11dd-ad8b-0800200c9a66#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=88a3c1ae-902e-4efa-8663-ddd836101929#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
1
64
* print corConformanceHref
0
04:56:11.025 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.026 [print] "Nadere uitleg bij het al dan niet volledig voldoen aan de specificatie";"Open Search mechanisme van het Nationaal Georegister functioneert nog niet naar behoren."
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.026 [print] "true";"false"
76
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ef2a7962-8bb4-483f-ac78-851b619f357f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.155:82]
72f30ca1-3b80-4020-b9ed-301b1a88df39
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:10.505 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '72f30ca1-3b80-4020-b9ed-301b1a88df39'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '72f30ca1-3b80-4020-b9ed-301b1a88df39'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:11.043 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.044 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.045 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.045 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.046 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:11.046 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=588a4cb1-b442-4ac1-87e4-40401e353166#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.047 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.048 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.049 [print] "false";"false"
76
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"72f30ca1-3b80-4020-b9ed-301b1a88df39","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.156:82]
93c8762c-4cbb-42b0-9b02-89ef902e8880
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:10.561 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93c8762c-4cbb-42b0-9b02-89ef902e8880'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93c8762c-4cbb-42b0-9b02-89ef902e8880'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:11.084 [print] https://service.pdok.nl/provincies/ps/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.085 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.086 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.086 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.087 [print] Beheer PDOK
57
* print operateson
0
04:56:11.087 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=49ab8bee-b467-486a-96ca-b950443c453a#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.088 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.089 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.090 [print] "true";"true"
76
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93c8762c-4cbb-42b0-9b02-89ef902e8880","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.157:82]
f59357eb-185f-42a5-b465-90bfa6e3e416
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:10.788 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f59357eb-185f-42a5-b465-90bfa6e3e416'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f59357eb-185f-42a5-b465-90bfa6e3e416'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:11.311 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.312 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.313 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.313 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.314 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:11.314 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.316 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.317 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.318 [print] "false";"false"
76
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f59357eb-185f-42a5-b465-90bfa6e3e416","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.158:82]
5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.030 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:11.568 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.569 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.569 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.570 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.571 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:11.571 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.576 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.577 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.577 [print] "false";"false"
76
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5d3fc8f8-5cb4-42e2-8f9b-62c147f36cc5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.159:82]
a931e334-b752-4935-8a98-00eddc443789
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.053 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a931e334-b752-4935-8a98-00eddc443789'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a931e334-b752-4935-8a98-00eddc443789'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:11.588 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.589 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.590 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.590 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.591 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:11.591 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.593 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.594 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.595 [print] "false";"false"
76
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a931e334-b752-4935-8a98-00eddc443789","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.160:82]
15c3c30f-0db2-4b3b-80f6-b990c8fc8225
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.093 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '15c3c30f-0db2-4b3b-80f6-b990c8fc8225'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:11.618 [print] https://service.pdok.nl/hwh/hydrografie/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:11.619 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.620 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.620 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.620 [print] Beheer PDOK
57
* print operateson
0
04:56:11.621 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.622 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.623 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.624 [print] "true";"true"
76
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"15c3c30f-0db2-4b3b-80f6-b990c8fc8225","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.161:82]
0bc2bcb8-558b-446b-b4e2-381b13d483a8
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.322 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0bc2bcb8-558b-446b-b4e2-381b13d483a8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0bc2bcb8-558b-446b-b4e2-381b13d483a8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:11.845 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
5
50
* print protocol1
0
04:56:11.851 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:11.852 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:11.852 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:11.853 [print] Beheer PDOK
57
* print operateson
0
04:56:11.853 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:11.855 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:11.856 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:11.857 [print] "true";"true"
76
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0bc2bcb8-558b-446b-b4e2-381b13d483a8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.162:82]
a301ddc7-c26f-42d8-b367-509ae5ae47d0
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.581 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
543
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a301ddc7-c26f-42d8-b367-509ae5ae47d0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:12.132 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotorgb\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.133 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.134 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.134 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.135 [print] Beheer PDOK
57
* print operateson
1
04:56:12.136 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=74aca3eb-c38b-4214-9537-e0abc69e11b5#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5b274449-b6c2-4672-a32f-e0bd40975a53#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=df15af6e-0d21-4437-a69f-802be3479bba#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=64ff8561-5c56-4cc1-ae0e-94366fb70b7e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4e2bb25e-a5a9-43a7-986a-40e7aea32e38#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.137 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:12.138 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.139 [print] "true";"true"
76
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a301ddc7-c26f-42d8-b367-509ae5ae47d0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.163:82]
4041f923-6b77-4816-bf46-437e85416c31
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.598 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4041f923-6b77-4816-bf46-437e85416c31'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
546
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4041f923-6b77-4816-bf46-437e85416c31'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:12.152 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnmarienestrategie2018\/wms\/v1_0?SERVICE=WMS&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.152 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.153 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.153 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.154 [print] Beheer PDOK
57
* print operateson
0
04:56:12.154 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=krm-a905-9d8e-4758-83fa-28b057f185e4#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.156 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:12.156 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.157 [print] "true";"true"
76
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4041f923-6b77-4816-bf46-437e85416c31","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.164:82]
93a9571d-1754-47ee-a8f9-92633abfab3a
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.627 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '93a9571d-1754-47ee-a8f9-92633abfab3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '93a9571d-1754-47ee-a8f9-92633abfab3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:12.179 [print] https://geodata.nationaalgeoregister.nl/rvo/invasieve-exoten/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.179 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.180 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.180 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.181 [print] Beheer PDOK
57
* print operateson
0
04:56:12.181 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3703b249-a0eb-484e-ba7a-10e31a55bcec&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.182 [print] "http:\/\/";"";"http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:12.183 [print] "";"Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.184 [print] "true";"true";"true"
76
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"93a9571d-1754-47ee-a8f9-92633abfab3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.165:82]
b196f948-5d87-4eb4-9854-a93841c3877f
ms: 528
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:11.860 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b196f948-5d87-4eb4-9854-a93841c3877f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b196f948-5d87-4eb4-9854-a93841c3877f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:12.382 [print] https://geodata.nationaalgeoregister.nl/rvo/invasieve-exoten/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.383 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:12.384 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.384 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.385 [print] Beheer PDOK
57
* print operateson
0
04:56:12.385 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.386 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:12.387 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.388 [print] "true";"true"
76
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b196f948-5d87-4eb4-9854-a93841c3877f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.166:82]
d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.143 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd4e573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:12.677 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwateractueel\/wms\/v1_0?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:56:12.678 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.680 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.680 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.681 [print] Beheer PDOK
57
* print operateson
1
04:56:12.682 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=622a632a-c57b-44a2-83a4-e51223d5f15g#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=782cab20-8328-45f1-a9b2-c27d07c14066#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f7bb2351-9788-42ea-a58b-a5ee1842304e#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2e31680f-68b5-4ff3-94a4-9c24109ffd5e#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.684 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:12.686 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.687 [print] "true";"true"
76
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d4e573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.167:82]
7681eb19-a914-4dc7-9208-c2a131dca06d
ms: 561
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.160 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7681eb19-a914-4dc7-9208-c2a131dca06d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7681eb19-a914-4dc7-9208-c2a131dca06d'
3
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:12.712 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/kaderrichtlijnwater2015\/wms\/v1_0?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.713 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.714 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.715 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.716 [print] Beheer PDOK
57
* print operateson
1
04:56:12.716 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.719 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:12.720 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.721 [print] "true";"true"
76
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7681eb19-a914-4dc7-9208-c2a131dca06d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.168:82]
8129296b-b9c1-489f-990a-df4a879e12b2
ms: 565
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.187 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8129296b-b9c1-489f-990a-df4a879e12b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8129296b-b9c1-489f-990a-df4a879e12b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
6
45
* print connectUrl
0
04:56:12.742 [print] https://service.pdok.nl/cbs/hh/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.743 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.744 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.744 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.745 [print] Beheer PDOK
57
* print operateson
0
04:56:12.745 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
3
04:56:12.750 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:12.751 [print] "Deze service voldoet aan de specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:12.752 [print] "true";"true";"true"
76
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8129296b-b9c1-489f-990a-df4a879e12b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.169:82]
68722979-8d6c-4ee4-a81a-8381d2588fe5
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.391 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68722979-8d6c-4ee4-a81a-8381d2588fe5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68722979-8d6c-4ee4-a81a-8381d2588fe5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:12.934 [print] https://geodata.nationaalgeoregister.nl/nl/rws/hy-n/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:12.934 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:12.936 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:12.936 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:12.937 [print] Beheer PDOK
57
* print operateson
0
04:56:12.938 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:12.940 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:12.941 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
5
04:56:12.946 [print] "true";"true"
76
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"68722979-8d6c-4ee4-a81a-8381d2588fe5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.170:82]
d7a395a2-8673-4794-a5a6-fed6492cd580
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.694 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd7a395a2-8673-4794-a5a6-fed6492cd580'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd7a395a2-8673-4794-a5a6-fed6492cd580'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:13.212 [print] https:\/\/service.pdok.nl\/hwh\/luchtfotocir\/wms\/v1_0?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:13.213 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:13.213 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:13.213 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:13.214 [print] Beheer PDOK
57
* print operateson
0
04:56:13.214 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1be28290-55fa-4486-b9d3-b9d147117863#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7c24ea89-074e-4c4f-91e3-d38e813e9cb6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9ed6b8ed-254a-4745-a09a-3b57137d1b69#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=4cfb1469-a152-4ba6-8fe9-4b627acd7ee0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:13.216 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:13.217 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:13.218 [print] "true";"true"
76
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d7a395a2-8673-4794-a5a6-fed6492cd580","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.171:82]
e9ba7d7f-6cd1-4271-bce4-56432924b338
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.738 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
6
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
3
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
541
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e9ba7d7f-6cd1-4271-bce4-56432924b338'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:13.298 [print] https://geodata.nationaalgeoregister.nl/mosselzaadinvanginstallaties/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:13.299 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:13.300 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:13.301 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:13.301 [print] Beheer PDOK
57
* print operateson
0
04:56:13.302 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:13.304 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:13.305 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:13.306 [print] "true";"true"
76
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e9ba7d7f-6cd1-4271-bce4-56432924b338","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.172:82]
aaf53e6f-fe99-4a86-a61c-50b128412d80
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.766 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'aaf53e6f-fe99-4a86-a61c-50b128412d80'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'aaf53e6f-fe99-4a86-a61c-50b128412d80'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:13.322 [print] https://geodata.nationaalgeoregister.nl/mosselenoesterhabitats/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:13.323 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:13.324 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:13.324 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:13.325 [print] Beheer PDOK
57
* print operateson
0
04:56:13.325 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3d59fd06-9aec-4744-91e7-65e119f74569#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:13.326 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:13.327 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:13.328 [print] "true";"true"
76
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"aaf53e6f-fe99-4a86-a61c-50b128412d80","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.173:82]
c78a99eb-9ba3-4307-a21b-2a64ad5da039
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:12.954 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c78a99eb-9ba3-4307-a21b-2a64ad5da039'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
2
45
* print connectUrl
6
04:56:13.488 [print] https://geodata.nationaalgeoregister.nl/mosselzaadinvanginstallaties/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:56:13.489 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:13.490 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:13.490 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:13.492 [print] Beheer PDOK
57
* print operateson
0
04:56:13.492 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=a04afee4-47d5-45b7-b7a0-a6f86106af11#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:13.494 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:13.495 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:13.497 [print] "true";"true"
76
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c78a99eb-9ba3-4307-a21b-2a64ad5da039","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.174:82]
76854ff3-a853-4405-b9fd-acef66460376
ms: 807
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:13.223 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '76854ff3-a853-4405-b9fd-acef66460376'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
620
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76854ff3-a853-4405-b9fd-acef66460376'
9
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
10
34
* def title = get response //citation/CI_Citation/title/CharacterString
9
35
* def email = get response //electronicMailAddress/CharacterString
8
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
8
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
8
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
5
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
6
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
4
45
* print connectUrl
0
04:56:13.917 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
5
50
* print protocol1
0
04:56:13.922 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
6
52
* print protocol2
0
04:56:13.928 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:13.928 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
8
56
* print organisationpath
0
04:56:13.936 [print] Beheer PDOK
57
* print operateson
0
04:56:13.936 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
8
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
20
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
16
04:56:13.981 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
25
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
8
04:56:14.014 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
16
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.031 [print] "true";"true"
76
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"76854ff3-a853-4405-b9fd-acef66460376","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.175:82]
37e05521-c323-4dbe-aba4-de1178ba44a5
ms: 1013
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:13.309 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '37e05521-c323-4dbe-aba4-de1178ba44a5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
657
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '37e05521-c323-4dbe-aba4-de1178ba44a5'
23
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
33
34
* def title = get response //citation/CI_Citation/title/CharacterString
15
35
* def email = get response //electronicMailAddress/CharacterString
10
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
14
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
12
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
6
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
44
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
63
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
1
04:56:14.193 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
14
50
* print protocol1
1
04:56:14.208 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
6
52
* print protocol2
9
04:56:14.223 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.224 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
16
56
* print organisationpath
1
04:56:14.240 [print] Beheer PDOK
57
* print operateson
0
04:56:14.241 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
9
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
28
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:14.278 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
15
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
14
04:56:14.307 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
15
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.322 [print] "true";"true"
76
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"37e05521-c323-4dbe-aba4-de1178ba44a5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.176:82]
8e7686c3-f75e-411f-866e-6985267b916b
ms: 1045
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:13.332 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8e7686c3-f75e-411f-866e-6985267b916b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
624
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8e7686c3-f75e-411f-866e-6985267b916b'
12
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
14
34
* def title = get response //citation/CI_Citation/title/CharacterString
40
35
* def email = get response //electronicMailAddress/CharacterString
14
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
42
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
102
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
16
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
36
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
23
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
3
45
* print connectUrl
1
04:56:14.261 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsgebiedsoorten\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
23
50
* print protocol1
9
04:56:14.293 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
1
04:56:14.300 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.300 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
20
56
* print organisationpath
8
04:56:14.328 [print] Beheer PDOK
57
* print operateson
1
04:56:14.329 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=cbeaebc3-815a-48af-a978-0e16892865fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
11
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
18
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:14.359 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
9
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:14.369 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
7
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.376 [print] "true";"true"
76
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8e7686c3-f75e-411f-866e-6985267b916b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.177:82]
e69bb2e9-eff4-4fb3-86a6-057cf628e761
ms: 938
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:13.500 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e69bb2e9-eff4-4fb3-86a6-057cf628e761'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
679
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e69bb2e9-eff4-4fb3-86a6-057cf628e761'
51
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
19
34
* def title = get response //citation/CI_Citation/title/CharacterString
38
35
* def email = get response //electronicMailAddress/CharacterString
29
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
11
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
39
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
13
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
4
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
5
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:14.391 [print] https:\/\/geodata.nationaalgeoregister.nl\/vogelrichtlijnverspreidingsoorten\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
4
50
* print protocol1
0
04:56:14.396 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
5
52
* print protocol2
2
04:56:14.403 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.403 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
6
56
* print organisationpath
0
04:56:14.410 [print] Beheer PDOK
57
* print operateson
0
04:56:14.411 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=fcefa13c-44e2-4953-b6d6-1ddceebc57fc#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
6
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
6
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:14.424 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
6
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:14.431 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
6
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
1
04:56:14.438 [print] "true";"true"
76
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e69bb2e9-eff4-4fb3-86a6-057cf628e761","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.178:82]
a2724dae-ebad-4a07-9405-49bddfde3368
ms: 587
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.035 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2724dae-ebad-4a07-9405-49bddfde3368'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
569
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2724dae-ebad-4a07-9405-49bddfde3368'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:14.613 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wfs\/v2_0?service=WFS&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:14.614 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:14.614 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.615 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:14.615 [print] Beheer PDOK
57
* print operateson
0
04:56:14.616 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:14.617 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:14.618 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.619 [print] "true";"true"
76
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
3
78
* eval db.writeln('"a2724dae-ebad-4a07-9405-49bddfde3368","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.179:82]
f57bdee7-4027-4aa2-8312-4051b854be3c
ms: 511
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.326 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f57bdee7-4027-4aa2-8312-4051b854be3c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
497
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f57bdee7-4027-4aa2-8312-4051b854be3c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:14.832 [print] https://service.pdok.nl/rvo/schelpdierpercelen/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:56:14.833 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:14.833 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.833 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:14.834 [print] Beheer PDOK
57
* print operateson
0
04:56:14.834 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c4b4e95a-12d7-4c74-933c-cb267cfe0bcf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:14.836 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:14.836 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.837 [print] "true";"true"
76
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f57bdee7-4027-4aa2-8312-4051b854be3c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.180:82]
c374d556-7b6e-459b-83c7-74da6ad90a59
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.380 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c374d556-7b6e-459b-83c7-74da6ad90a59'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c374d556-7b6e-459b-83c7-74da6ad90a59'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:14.903 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:14.904 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:14.905 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.905 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:14.906 [print] Beheer PDOK
57
* print operateson
0
04:56:14.906 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:14.907 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:14.909 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.910 [print] "true";"true"
76
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c374d556-7b6e-459b-83c7-74da6ad90a59","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.181:82]
f76bdce5-344e-415f-8f2c-972755e80b65
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.443 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f76bdce5-344e-415f-8f2c-972755e80b65'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f76bdce5-344e-415f-8f2c-972755e80b65'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:14.969 [print] https://geodata.nationaalgeoregister.nl/schelpdierwater/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:14.970 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:14.971 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:14.971 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:14.971 [print] Beheer PDOK
57
* print operateson
0
04:56:14.972 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=4783ea4f-6b8c-4600-8af0-516f3556cfe9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:14.973 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:14.974 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:14.975 [print] "true";"true"
76
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f76bdce5-344e-415f-8f2c-972755e80b65","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.182:82]
d981070b-888c-42d5-85ff-1e383f3d7fce
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.626 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd981070b-888c-42d5-85ff-1e383f3d7fce'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd981070b-888c-42d5-85ff-1e383f3d7fce'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:15.161 [print] https://geodata.nationaalgeoregister.nl/windkaart/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.161 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:15.162 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.162 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.163 [print] Beheer PDOK
57
* print operateson
0
04:56:15.163 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.165 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:15.166 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.166 [print] "true";"true"
76
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d981070b-888c-42d5-85ff-1e383f3d7fce","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.183:82]
2650d49b-7d9a-49b5-b748-a0372cd9b5cf
ms: 515
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.840 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2650d49b-7d9a-49b5-b748-a0372cd9b5cf'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:15.350 [print] http:\/\/geodata.nationaalgeoregister.nl\/wsdiensteninspire\/wms?request=getcapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.351 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:15.351 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.351 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.352 [print] Beheer PDOK
57
* print operateson
0
04:56:15.352 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bffcd5d9-02b4-4e7d-991f-a386611cad84#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.354 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:15.354 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.355 [print] "true";"true"
76
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2650d49b-7d9a-49b5-b748-a0372cd9b5cf","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.184:82]
4074b3c3-ca85-45ad-bc0d-b5fca8540c0a
ms: 521
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.913 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4074b3c3-ca85-45ad-bc0d-b5fca8540c0a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
6
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:15.428 [print] https://geodata.nationaalgeoregister.nl/vin/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.429 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:15.430 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.430 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.431 [print] Beheer PDOK
57
* print operateson
0
04:56:15.431 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.432 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:15.433 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.434 [print] "true";"true"
76
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4074b3c3-ca85-45ad-bc0d-b5fca8540c0a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.185:82]
b4ae5b2c-f557-4a30-bbf2-c2681a544f32
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:14.978 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae5b2c-f557-4a30-bbf2-c2681a544f32'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:15.506 [print] https://geodata.nationaalgeoregister.nl/vin/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.507 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:15.508 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.508 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.509 [print] Beheer PDOK
57
* print operateson
0
04:56:15.509 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=831f7bd7-c2ae-4336-bd2f-47ab20d7cdb7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.510 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:15.511 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.512 [print] "true";"true"
76
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b4ae5b2c-f557-4a30-bbf2-c2681a544f32","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.186:82]
cea38797-ea4b-4969-b979-8d25eb543a6c
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.170 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cea38797-ea4b-4969-b979-8d25eb543a6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cea38797-ea4b-4969-b979-8d25eb543a6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:15.711 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.711 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
16
52
* print protocol2
0
04:56:15.728 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.728 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.729 [print] Beheer PDOK
57
* print operateson
0
04:56:15.729 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.731 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
1
68
* print corConformanceTitles
0
04:56:15.732 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.733 [print] "true";"true"
76
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cea38797-ea4b-4969-b979-8d25eb543a6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.187:82]
e75b66ae-21b1-4303-aeb3-787608707b23
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.358 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e75b66ae-21b1-4303-aeb3-787608707b23'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e75b66ae-21b1-4303-aeb3-787608707b23'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:15.881 [print] https://geodata.nationaalgeoregister.nl/inspire/elu/wfs?request=GetCapabilitiesservice=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.882 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:15.882 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.883 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.883 [print] Beheer PDOK
57
* print operateson
0
04:56:15.883 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=6318009c-7b11-4ab9-9929-735584dfb692#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.885 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:15.886 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.887 [print] "true";"true"
76
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e75b66ae-21b1-4303-aeb3-787608707b23","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.188:82]
627b50bf-2e33-4beb-a314-ff8c0fe8912e
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.437 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '627b50bf-2e33-4beb-a314-ff8c0fe8912e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '627b50bf-2e33-4beb-a314-ff8c0fe8912e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:15.963 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:15.964 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:15.965 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:15.965 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:15.966 [print] Beheer PDOK
57
* print operateson
0
04:56:15.966 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:15.968 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:15.969 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:15.970 [print] "true";"true"
76
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"627b50bf-2e33-4beb-a314-ff8c0fe8912e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.189:82]
a84f9836-9111-4e45-a311-3dab39019e15
ms: 520
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.515 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a84f9836-9111-4e45-a311-3dab39019e15'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
505
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a84f9836-9111-4e45-a311-3dab39019e15'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:16.029 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-w\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:16.030 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:16.030 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:16.031 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.031 [print] Beheer PDOK
57
* print operateson
0
04:56:16.032 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:16.033 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:16.034 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.035 [print] "true";"true"
76
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a84f9836-9111-4e45-a311-3dab39019e15","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.190:82]
dae8f9e3-99af-4d21-9feb-29f2a1693077
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.737 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dae8f9e3-99af-4d21-9feb-29f2a1693077'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:16.261 [print] https://service.pdok.nl/kadaster/tn/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:16.262 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:16.263 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:16.263 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.264 [print] Beheer PDOK
57
* print operateson
0
04:56:16.264 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=6c06740d-058f-4a12-bb3f-bf68efd03d09#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=31de946d-85d4-4c93-bb97-e25f4ef1401a#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=3a7dd0a6-d130-4c4c-b0ba-24365cf036e2#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=5951efa2-1ff3-4763-a966-a2f5497679ee#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f45b8ef-0ce8-463a-9059-5efdcecb785c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:16.265 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:16.266 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.266 [print] "true";"true"
76
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dae8f9e3-99af-4d21-9feb-29f2a1693077","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.191:82]
018a28a5-1019-4747-b031-f66ffc1c6ae7
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.891 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '018a28a5-1019-4747-b031-f66ffc1c6ae7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '018a28a5-1019-4747-b031-f66ffc1c6ae7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:16.428 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:16.430 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:16.431 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:16.431 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.432 [print] Beheer PDOK
57
* print operateson
0
04:56:16.433 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:16.435 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:16.436 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.437 [print] "true";"true"
76
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"018a28a5-1019-4747-b031-f66ffc1c6ae7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.192:82]
4fb15e0d-d88f-40f1-b407-3d3edcf7e184
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:15.974 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4fb15e0d-d88f-40f1-b407-3d3edcf7e184'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4fb15e0d-d88f-40f1-b407-3d3edcf7e184'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:16.493 [print] https:\/\/geodata.nationaalgeoregister.nl\/nl\/rws\/tn-ro\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:16.494 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:16.495 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:16.496 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.497 [print] Beheer PDOK
57
* print operateson
0
04:56:16.497 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=eu-cb527d-f6db-4835-b0cd-deb245241254#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:16.499 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:16.500 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.501 [print] "true";"true"
76
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"4fb15e0d-d88f-40f1-b407-3d3edcf7e184","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
8
Scenario: [1.193:82]
598c4109-21d2-4a6c-b083-9975a6736853
ms: 546
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.039 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736853'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736853'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:16.574 [print] https:\/\/geodata.nationaalgeoregister.nl\/weggeg\/wms?request=getcapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:16.575 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:56:16.576 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
2
04:56:16.578 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.579 [print] Beheer PDOK
57
* print operateson
0
04:56:16.580 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=27df6b33-194c-46d6-ac94-257c306c91f2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=abaf1e22-55aa-4a11-a855-7ac963e4a82b#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:16.582 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:16.583 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.584 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736853","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.194:82]
180b6682-5d6f-429d-abb7-32f7d6253787
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.270 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '180b6682-5d6f-429d-abb7-32f7d6253787'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '180b6682-5d6f-429d-abb7-32f7d6253787'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:16.802 [print] https://geodata.nationaalgeoregister.nl/windkaart/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:16.803 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:16.804 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:16.804 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.805 [print] Beheer PDOK
57
* print operateson
0
04:56:16.805 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=d845cef6-0e23-4212-a951-b69763e39ef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:16.807 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:16.808 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.809 [print] "true";"true"
76
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"180b6682-5d6f-429d-abb7-32f7d6253787","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.195:82]
4805aac3-9a8d-4fcd-851b-88c7b3d342e2
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.441 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4805aac3-9a8d-4fcd-851b-88c7b3d342e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:16.961 [print] https://service.pdok.nl/kadaster/sr/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:56:16.962 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:16.962 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:16.962 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:16.963 [print] Beheer PDOK
57
* print operateson
0
04:56:16.963 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:16.964 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:16.965 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:16.966 [print] "true";"true"
76
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4805aac3-9a8d-4fcd-851b-88c7b3d342e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.196:82]
eec0708d-bab6-41c2-aa5b-9c435a1a177e
ms: 528
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.513 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eec0708d-bab6-41c2-aa5b-9c435a1a177e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:17.036 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.037 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.038 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.038 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.039 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:17.039 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.040 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:17.041 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.041 [print] true
76
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eec0708d-bab6-41c2-aa5b-9c435a1a177e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.197:82]
ce0a3f8e-6713-455f-805e-a067162c287d
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.594 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ce0a3f8e-6713-455f-805e-a067162c287d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
560
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ce0a3f8e-6713-455f-805e-a067162c287d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:17.162 [print] https://haleconnect.com/ows/services/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.162 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.163 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.163 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.164 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:17.164 [print] https://haleconnect.com/services/bsp/org.874.7e01e60c-8887-425c-af9b-e2cf6af9181b/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.165 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:17.166 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.167 [print] true
76
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ce0a3f8e-6713-455f-805e-a067162c287d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.198:82]
7a748a59-36f4-475b-9647-402b5ce89a1c
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.813 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7a748a59-36f4-475b-9647-402b5ce89a1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7a748a59-36f4-475b-9647-402b5ce89a1c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:17.332 [print] https://service.pdok.nl/kadaster/lc/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.332 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.333 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.333 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.334 [print] Beheer PDOK
57
* print operateson
0
04:56:17.334 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.335 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:17.336 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.336 [print] "true";"true"
76
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7a748a59-36f4-475b-9647-402b5ce89a1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.199:82]
67bcc21d-beda-449d-975c-00a4fa80f2b7
ms: 513
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:16.969 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '67bcc21d-beda-449d-975c-00a4fa80f2b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
500
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '67bcc21d-beda-449d-975c-00a4fa80f2b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:17.476 [print] https:\/\/service.pdok.nl\/hwh\/hydrografie\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.477 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.478 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.478 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.479 [print] Beheer PDOK
57
* print operateson
0
04:56:17.479 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=07575774-57a1-4419-bab4-6c88fdeb02b2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.480 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:17.481 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.482 [print] "true";"true"
76
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"67bcc21d-beda-449d-975c-00a4fa80f2b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.200:82]
008d85d1-460d-46f6-9af4-98afdedbc4dc
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.045 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '008d85d1-460d-46f6-9af4-98afdedbc4dc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '008d85d1-460d-46f6-9af4-98afdedbc4dc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
18
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:17.579 [print] https://service.pdok.nl/cbs/pd/wfs/v1_0?service=WFS&request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.579 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.580 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.580 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.581 [print] Beheer PDOK
57
* print operateson
0
04:56:17.581 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.583 [print] "http:\/\/data.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs ."
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:17.584 [print] "Deze service voldoet aan specificaties voor spatial data services";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.585 [print] "true";"true";"true"
76
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"008d85d1-460d-46f6-9af4-98afdedbc4dc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.201:82]
027e3f15-3b58-4570-97bb-779ce3ca947e
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.170 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '027e3f15-3b58-4570-97bb-779ce3ca947e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '027e3f15-3b58-4570-97bb-779ce3ca947e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:17.687 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2019/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.688 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.689 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.690 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.691 [print] Beheer PDOK
57
* print operateson
0
04:56:17.691 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.693 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:17.694 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.695 [print] "true";"true"
76
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"027e3f15-3b58-4570-97bb-779ce3ca947e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.202:82]
01572637-b851-4cc3-b06a-56c1ae1115cc
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.340 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '01572637-b851-4cc3-b06a-56c1ae1115cc'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '01572637-b851-4cc3-b06a-56c1ae1115cc'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:17.865 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:17.866 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:17.867 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:17.867 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:17.868 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:17.868 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:17.870 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:17.872 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:17.873 [print] "false";"false"
76
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"01572637-b851-4cc3-b06a-56c1ae1115cc","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.203:82]
1601e160-91e8-4091-9aca-10294f819d42
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.485 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1601e160-91e8-4091-9aca-10294f819d42'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
504
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1601e160-91e8-4091-9aca-10294f819d42'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:17.999 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-natura2000/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:56:18.000 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.001 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.002 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.003 [print] Beheer PDOK
57
* print operateson
1
04:56:18.003 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=280ed37a-b8d2-4ac5-8567-04d84fad3a41#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.005 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:18.007 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.008 [print] "true";"true"
76
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1601e160-91e8-4091-9aca-10294f819d42","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.204:82]
710a6a9b-c09f-4660-b15a-2d5bee27e7e3
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.594 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710a6a9b-c09f-4660-b15a-2d5bee27e7e3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:18.112 [print] https://service.pdok.nl/cbs/gebiedsindelingen/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:18.113 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.114 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.114 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.115 [print] Beheer PDOK
57
* print operateson
0
04:56:18.115 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.117 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:18.118 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.119 [print] "true";"true"
76
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"710a6a9b-c09f-4660-b15a-2d5bee27e7e3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.205:82]
275b64ab-34c2-41f8-8904-97812c7f716e
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.698 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '275b64ab-34c2-41f8-8904-97812c7f716e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '275b64ab-34c2-41f8-8904-97812c7f716e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:18.216 [print] https://geodata.nationaalgeoregister.nl/inspire/ps-rvo-wl/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:18.217 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.218 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.218 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.219 [print] Beheer PDOK
57
* print operateson
0
04:56:18.219 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=19165027-a13a-4c19-9013-ec1fd191019d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.220 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:18.221 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.222 [print] "true";"true"
76
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"275b64ab-34c2-41f8-8904-97812c7f716e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.206:82]
b5ee6914-04bd-4c7e-a180-242371ae40d9
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:17.876 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b5ee6914-04bd-4c7e-a180-242371ae40d9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:18.403 [print] https://inspire.rivm.nl/atom/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:18.403 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.404 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.404 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.405 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:18.405 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=08b27bf0-e34a-4b30-9eac-5edadfb6a288#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f2f86edf-ac3a-48e8-9292-0544da2d7645#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=ad6caa40-89ab-47e3-85ab-3f8e32024a71#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=f8d840bc-18df-4449-b797-b9adcb81d3ec#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d3c9efd6-fca7-49d6-92bb-5f507abece90#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=32a21114-8694-40ce-ab76-9dcd885c7861#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d24ccb35-e9d2-41bf-b231-43083fc0c76d#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=36a7e8cb-8300-4602-93d2-135943365a6f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=b3f66964-a8c1-456f-9799-9cafca2cb7b1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=e1e99000-ec47-4e9f-84a5-adad24fef0dc#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=d9baa847-4652-4588-abe1-0b050f40f27f#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=2cc2c30c-91b8-412a-a060-e84d25272581#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.407 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:18.408 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"notEvaluated";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.408 [print] "false";"true";"true"
76
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"b5ee6914-04bd-4c7e-a180-242371ae40d9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.207:82]
cb13a608-3d78-4f79-ba60-be63ccd6e268
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.012 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cb13a608-3d78-4f79-ba60-be63ccd6e268'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cb13a608-3d78-4f79-ba60-be63ccd6e268'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:18.529 [print] https://service.pdok.nl/cbs/vk100/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:18.530 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.531 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.531 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.531 [print] Beheer PDOK
57
* print operateson
0
04:56:18.532 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.533 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:18.534 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.534 [print] "true";"true"
76
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cb13a608-3d78-4f79-ba60-be63ccd6e268","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.208:82]
deaf8380-ad45-48d2-8c3e-81164471bafb
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.126 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deaf8380-ad45-48d2-8c3e-81164471bafb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deaf8380-ad45-48d2-8c3e-81164471bafb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:18.643 [print] https://service.pdok.nl/cbs/vk500/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:18.645 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.646 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.646 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.647 [print] Beheer PDOK
57
* print operateson
0
04:56:18.647 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.649 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:18.650 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.650 [print] "true";"true"
76
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deaf8380-ad45-48d2-8c3e-81164471bafb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.209:82]
47470f53-e0aa-45f3-ada3-ddf130dd54af
ms: 541
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.225 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47470f53-e0aa-45f3-ada3-ddf130dd54af'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47470f53-e0aa-45f3-ada3-ddf130dd54af'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:18.759 [print] https://service.pdok.nl/cbs/wb2021/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:18.760 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.761 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.761 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.762 [print] Beheer PDOK
57
* print operateson
0
04:56:18.762 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:18.763 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:18.764 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.765 [print] "true";"true"
76
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"47470f53-e0aa-45f3-ada3-ddf130dd54af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.210:82]
2931d583-9633-49d3-ad38-aabea82f6751
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.412 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2931d583-9633-49d3-ad38-aabea82f6751'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2931d583-9633-49d3-ad38-aabea82f6751'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:18.943 [print] https://service.pdok.nl/bzk/bro-hydrogeology/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:18.944 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:18.945 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:18.946 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:18.947 [print] Beheer PDOK
57
* print operateson
0
04:56:18.947 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:18.949 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:18.950 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:18.951 [print] "true";"true"
76
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2931d583-9633-49d3-ad38-aabea82f6751","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.211:82]
47d416f8-76e8-441c-9b19-c8f889dfe62c
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.538 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '47d416f8-76e8-441c-9b19-c8f889dfe62c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '47d416f8-76e8-441c-9b19-c8f889dfe62c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:19.063 [print] https://service.pdok.nl/kadaster/gn/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:56:19.064 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.065 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.065 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.066 [print] Beheer PDOK
57
* print operateson
0
04:56:19.066 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1a40eb6f-4f33-4e15-a0b1-2d350ad2636e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.068 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.069 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.070 [print] "true";"true"
76
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"47d416f8-76e8-441c-9b19-c8f889dfe62c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.212:82]
e222648d-d19e-4a99-a67d-2af1c9aabd75
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.654 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
500
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e222648d-d19e-4a99-a67d-2af1c9aabd75'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:19.163 [print] https://service.pdok.nl/kadaster/cp/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:19.164 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.165 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.165 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.166 [print] Beheer PDOK
57
* print operateson
0
04:56:19.166 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=e80ad426-1392-4349-9f80-14dae5f1bf57#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.168 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.169 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.170 [print] "true";"true"
76
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e222648d-d19e-4a99-a67d-2af1c9aabd75","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.213:82]
7c664a91-1aa2-4923-9d17-6a43e4075f47
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.768 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7c664a91-1aa2-4923-9d17-6a43e4075f47'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
542
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c664a91-1aa2-4923-9d17-6a43e4075f47'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:19.318 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-Territoriale-Zee-Noordzee-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:19.319 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.320 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.320 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.321 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
1
04:56:19.322 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=bb11be63-bd38-4632-bf54-df44c423a529#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.323 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.324 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.325 [print] "true";"true"
76
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7c664a91-1aa2-4923-9d17-6a43e4075f47","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.214:82]
070014b4-1f63-4819-beea-000b7d5f8d86
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:18.955 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '070014b4-1f63-4819-beea-000b7d5f8d86'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '070014b4-1f63-4819-beea-000b7d5f8d86'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
5
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:19.473 [print] https://www.broinspireservices.nl/atom/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:19.474 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.475 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.475 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.476 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:19.477 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.478 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.479 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.480 [print] "true";"true"
76
* eval db.writeln('"070014b4-1f63-4819-beea-000b7d5f8d86","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
7
77
* eval db.writeln('"070014b4-1f63-4819-beea-000b7d5f8d86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"070014b4-1f63-4819-beea-000b7d5f8d86","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.215:82]
d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.073 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
556
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:19.640 [print] https://geodata.nationaalgeoregister.nl/rvo/inspire/invasieve-exoten/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:19.641 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.642 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.642 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.643 [print] Beheer PDOK
57
* print operateson
0
04:56:19.643 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=3703b249-a0eb-484e-ba7a-10e31a55bcec#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.645 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.646 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.647 [print] "true";"true"
76
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d2a05dd5-98e8-4f9c-8ba2-7fe2d5c7c507","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.216:82]
ddf33bff-8de3-4cca-b6f5-24d18daa502f
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.174 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ddf33bff-8de3-4cca-b6f5-24d18daa502f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:19.696 [print] https://geodata.nationaalgeoregister.nl/rws/kaderrichtlijnwater2015/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:19.697 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.698 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.698 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.699 [print] Beheer PDOK
57
* print operateson
0
04:56:19.699 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbeag#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=110f9ec6-4464-462e-9765-83d90cefbead#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.701 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.702 [print] "Technical Guidance for the implementation of INSPIRE Download Services 3.0";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.704 [print] "true";"true";"true"
76
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ddf33bff-8de3-4cca-b6f5-24d18daa502f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.217:82]
88a337a9-bed3-4d79-80fa-ff4b45990d7d
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.346 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a337a9-bed3-4d79-80fa-ff4b45990d7d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:19.862 [print] https://service.pdok.nl/cbs/wb2020/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:19.863 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:19.864 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:19.864 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:19.865 [print] Beheer PDOK
57
* print operateson
0
04:56:19.865 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:19.867 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:19.867 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:19.868 [print] "true";"true"
76
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a337a9-bed3-4d79-80fa-ff4b45990d7d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.218:82]
68a7e4c1-0073-4a1a-a6df-084d2badf45a
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.491 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
509
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68a7e4c1-0073-4a1a-a6df-084d2badf45a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.008 [print] https://service.pdok.nl/cbs/wb2019/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.009 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:20.010 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.010 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.011 [print] Beheer PDOK
57
* print operateson
0
04:56:20.011 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.013 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.014 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.015 [print] "true";"true"
76
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68a7e4c1-0073-4a1a-a6df-084d2badf45a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.219:82]
77971fa3-f869-4726-969a-482e0b1a8c5d
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.651 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '77971fa3-f869-4726-969a-482e0b1a8c5d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '77971fa3-f869-4726-969a-482e0b1a8c5d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.190 [print] https://www.gdngeoservices.nl/inspire/downloads/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.191 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:20.191 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.191 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.192 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:20.192 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=80630ee7-3a15-4ea0-bdc0-a8aebfa2f204&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.194 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.194 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.195 [print] "true";"true"
76
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"77971fa3-f869-4726-969a-482e0b1a8c5d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.220:82]
0fa448bb-332b-40b2-adab-13626b29bee6
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.707 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '0fa448bb-332b-40b2-adab-13626b29bee6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0fa448bb-332b-40b2-adab-13626b29bee6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.232 [print] https://service.pdok.nl/kadaster/lu/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.234 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:20.234 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.235 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.236 [print] Beheer PDOK
57
* print operateson
0
04:56:20.236 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.238 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.239 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.240 [print] "true";"true"
76
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"0fa448bb-332b-40b2-adab-13626b29bee6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.221:82]
c47e4ef8-951e-4765-8d01-29150c12a22d
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:19.871 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c47e4ef8-951e-4765-8d01-29150c12a22d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c47e4ef8-951e-4765-8d01-29150c12a22d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.382 [print] https://www.broinspireservices.nl/atom/services.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.382 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:20.383 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.384 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.384 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:20.385 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=7D35598D-DFBF-C64D-0F1A-92A80A45EB14&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.386 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.387 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.388 [print] "true";"true"
76
* eval db.writeln('"c47e4ef8-951e-4765-8d01-29150c12a22d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c47e4ef8-951e-4765-8d01-29150c12a22d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c47e4ef8-951e-4765-8d01-29150c12a22d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.222:82]
101304f0-2cf2-4ce0-aa23-cd7e4000fbba
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.018 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '101304f0-2cf2-4ce0-aa23-cd7e4000fbba'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.545 [print] https://service.pdok.nl/kadaster/sr/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:56:20.546 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:20.547 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.547 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.547 [print] Beheer PDOK
57
* print operateson
0
04:56:20.547 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=791adbe3-772f-42cb-a3be-5a617bcecef0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.549 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.549 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.550 [print] "true";"true"
76
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"101304f0-2cf2-4ce0-aa23-cd7e4000fbba","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.223:82]
9ad3f0c0-9e2c-4d44-a467-b57920aa512f
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.198 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
503
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ad3f0c0-9e2c-4d44-a467-b57920aa512f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.709 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.710 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:20.711 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.711 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.712 [print] Beheer PDOK
57
* print operateson
0
04:56:20.712 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.714 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.715 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.716 [print] "true";"true"
76
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9ad3f0c0-9e2c-4d44-a467-b57920aa512f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.224:82]
db1e010a-96f8-453e-b63c-9c27d6273157
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.243 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'db1e010a-96f8-453e-b63c-9c27d6273157'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db1e010a-96f8-453e-b63c-9c27d6273157'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.783 [print] https:\/\/geodata.nationaalgeoregister.nl\/bestandbodemgebruik2015\/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.784 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:20.785 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.785 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.786 [print] Beheer PDOK
57
* print operateson
0
04:56:20.786 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.788 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.789 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.790 [print] "true";"true"
76
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"db1e010a-96f8-453e-b63c-9c27d6273157","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.225:82]
25a99d92-ea8a-4163-82ab-3521c9b0c96b
ms: 527
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.391 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25a99d92-ea8a-4163-82ab-3521c9b0c96b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:20.911 [print] https:\/\/geodata.nationaalgeoregister.nl\/bestandbodemgebruik2015\/wfs?service=WFS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:20.912 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:20.913 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:20.913 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:20.914 [print] Beheer PDOK
57
* print operateson
0
04:56:20.915 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d3dd6d2-2d2b-4b5f-9e30-86e19ed77a56#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:20.917 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:20.918 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:20.919 [print] "true";"true"
76
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"25a99d92-ea8a-4163-82ab-3521c9b0c96b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.226:82]
488c1e6d-363e-4476-b2ff-17756ac9b35f
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.553 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '488c1e6d-363e-4476-b2ff-17756ac9b35f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '488c1e6d-363e-4476-b2ff-17756ac9b35f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:21.085 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:21.086 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:21.087 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:21.087 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:21.088 [print] Beheer PDOK
57
* print operateson
0
04:56:21.089 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:21.090 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:21.091 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:21.092 [print] "true";"true"
76
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"488c1e6d-363e-4476-b2ff-17756ac9b35f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.227:82]
bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.720 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
19
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:21.259 [print] https://service.pdok.nl/kadaster/lc/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:56:21.260 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:21.261 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:21.261 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:21.262 [print] Beheer PDOK
57
* print operateson
1
04:56:21.263 [print] https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1689d1b7-ef22-417a-becd-d8d9a8a90a10#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:21.265 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:21.265 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:21.267 [print] "true";"true"
76
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfe4f5c6-b6d2-4a63-a7b7-961dd9c9fcaa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.228:82]
a2fdecfc-de33-4ce3-b935-4c9ac18c5a36
ms: 1283
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.793 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
1263
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a2fdecfc-de33-4ce3-b935-4c9ac18c5a36'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.064 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten500mv2/wms/?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.066 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.067 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.067 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.068 [print] Beheer PDOK
57
* print operateson
0
04:56:22.068 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f605a24f-60cd-4c40-94c8-2186aba3ddd0#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.070 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
3
04:56:22.074 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.075 [print] "true";"true"
76
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a2fdecfc-de33-4ce3-b935-4c9ac18c5a36","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.229:82]
a5437cb4-98ef-4c8e-a5ed-000e7a82b774
ms: 1179
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:20.922 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
1164
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5437cb4-98ef-4c8e-a5ed-000e7a82b774'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.093 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.094 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.095 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.096 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.097 [print] Beheer PDOK
57
* print operateson
0
04:56:22.097 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.099 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:22.100 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.101 [print] "true";"true"
76
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a5437cb4-98ef-4c8e-a5ed-000e7a82b774","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.230:82]
abf1f9f0-1b85-40e8-86ec-86bee6003b4e
ms: 1067
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:21.096 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
1046
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'abf1f9f0-1b85-40e8-86ec-86bee6003b4e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.150 [print] https://geodata.nationaalgeoregister.nl/cbsvierkanten100mv2/wms/?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
5
50
* print protocol1
1
04:56:22.155 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.156 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.157 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.158 [print] Beheer PDOK
57
* print operateson
1
04:56:22.158 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=1462bbce-ccd3-4362-83d8-4535ca8f44eb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:22.160 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:22.161 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.162 [print] "true";"true"
76
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"abf1f9f0-1b85-40e8-86ec-86bee6003b4e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.231:82]
e08079df-6c19-486e-916e-5c9948cfafea
ms: 917
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:21.270 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e08079df-6c19-486e-916e-5c9948cfafea'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
899
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e08079df-6c19-486e-916e-5c9948cfafea'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:22.179 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wfs?&request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.180 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.181 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.181 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.182 [print] Beheer PDOK
57
* print operateson
0
04:56:22.183 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.185 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:22.186 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.187 [print] "true";"true"
76
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e08079df-6c19-486e-916e-5c9948cfafea","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.232:82]
d94b1eca-8a7d-4dc4-b979-36257878758f
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.080 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'd94b1eca-8a7d-4dc4-b979-36257878758f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
587
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd94b1eca-8a7d-4dc4-b979-36257878758f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.675 [print] https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.676 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.677 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.677 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.678 [print] Beheer PDOK
57
* print operateson
0
04:56:22.679 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=effe1ab0-073d-437c-af13-df5c5e07d6cd#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.680 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:22.681 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.682 [print] "true";"true"
76
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"d94b1eca-8a7d-4dc4-b979-36257878758f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.233:82]
46873d16-6835-48c4-b47f-134ab0cb31fa
ms: 542
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.105 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '46873d16-6835-48c4-b47f-134ab0cb31fa'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '46873d16-6835-48c4-b47f-134ab0cb31fa'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.639 [print] https:\/\/inspire.rivm.nl\/geoserver\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.640 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.641 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.641 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.642 [print] Rijksinstituut voor Volksgezondheid en Milieu
57
* print operateson
0
04:56:22.642 [print] http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=50a2c5e6-c8e7-425d-854e-26f578196bc9#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.644 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:22.645 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services 3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.646 [print] "false";"false"
76
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"46873d16-6835-48c4-b47f-134ab0cb31fa","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.234:82]
5f0c583a-101e-45ea-b684-a056713cf811
ms: 554
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.166 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5f0c583a-101e-45ea-b684-a056713cf811'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
540
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5f0c583a-101e-45ea-b684-a056713cf811'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.713 [print] https://inspire.caris.nl/atom/maritieme-grenzen-zones-noordzee-baseline-feed.atom
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.714 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.715 [print] INSPIRE Atom
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.715 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:22.716 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:22.716 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=1249746f-c2a6-4639-98f2-251676b3528e&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.718 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:22.719 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE Download Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.719 [print] "true";"true"
76
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5f0c583a-101e-45ea-b684-a056713cf811","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.235:82]
2b9da196-422e-4b0e-a5ba-ba41ade308e9
ms: 589
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.191 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2b9da196-422e-4b0e-a5ba-ba41ade308e9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
559
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2b9da196-422e-4b0e-a5ba-ba41ade308e9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:22.767 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:22.768 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:22.769 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:22.770 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:22.772 [print] Beheer PDOK
57
* print operateson
0
04:56:22.772 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:22.775 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:22.778 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:22.780 [print] "true";"true"
76
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2b9da196-422e-4b0e-a5ba-ba41ade308e9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.236:82]
9c5351c8-d8f4-41c2-9642-42a63496a6fe
ms: 573
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.649 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c5351c8-d8f4-41c2-9642-42a63496a6fe'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c5351c8-d8f4-41c2-9642-42a63496a6fe'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:23.197 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:23.198 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.200 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.200 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:23.202 [print] Beheer PDOK
57
* print operateson
0
04:56:23.203 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:23.206 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.208 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
14
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.223 [print] "true";"true"
76
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c5351c8-d8f4-41c2-9642-42a63496a6fe","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.237:82]
1ce74355-763a-481d-b9d7-aaafbf0d7d53
ms: 551
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.686 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1ce74355-763a-481d-b9d7-aaafbf0d7d53'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
3
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:23.225 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:23.227 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.228 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.228 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:23.229 [print] Beheer PDOK
57
* print operateson
0
04:56:23.229 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:23.232 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.233 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
2
04:56:23.237 [print] "true";"true"
76
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1ce74355-763a-481d-b9d7-aaafbf0d7d53","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.238:82]
5be14ec9-9bb3-4395-a061-e7e78d04a527
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.722 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5be14ec9-9bb3-4395-a061-e7e78d04a527'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5be14ec9-9bb3-4395-a061-e7e78d04a527'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
4
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:23.244 [print] https://geodata.nationaalgeoregister.nl/inspire/bu/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:23.245 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.246 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.247 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:23.248 [print] Beheer PDOK
57
* print operateson
0
04:56:23.248 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=b4ae622c-6201-49d8-bd2e-f7fce9206a1e#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:23.250 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:23.251 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.253 [print] "true";"true"
76
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5be14ec9-9bb3-4395-a061-e7e78d04a527","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.239:82]
74620aa8-4fa2-414d-8350-50d93e500da8
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:22.783 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '74620aa8-4fa2-414d-8350-50d93e500da8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74620aa8-4fa2-414d-8350-50d93e500da8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:23.301 [print] https:\/\/geodata.nationaalgeoregister.nl\/rwsgeluidskaarten\/wfs?service=WFS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:23.301 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.302 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.302 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:23.303 [print] Beheer PDOK
57
* print operateson
0
04:56:23.303 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=50eef6be-619d-4e16-9b92-48971109b636","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=8de2f5eb-b09f-4f6d-8397-8878a1b86238","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf36","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf9","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf38"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:23.305 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.306 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.307 [print] "true";"true"
76
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"74620aa8-4fa2-414d-8350-50d93e500da8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.240:82]
4b6752ae-65d6-44b5-98ef-1fc30f4fd92d
ms: 601
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.236 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
3
26
And param id = '4b6752ae-65d6-44b5-98ef-1fc30f4fd92d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
549
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b6752ae-65d6-44b5-98ef-1fc30f4fd92d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
7
04:56:23.802 [print] https:\/\/geodata.nationaalgeoregister.nl\/rwsgeluidskaarten\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
2
04:56:23.805 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.806 [print] ["OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.806 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:23.807 [print] Beheer PDOK
57
* print operateson
1
04:56:23.808 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf36#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=9b583730-e750-485a-9c0c-39bf9be72cf9#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=a57cb859-c4fe-444c-adc6-be14cb2bbf38#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=50eef6be-619d-4e16-9b92-48971109b636#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8de2f5eb-b09f-4f6d-8397-8878a1b86238#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
5
04:56:23.815 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
20
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.835 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.836 [print] "true";"true"
76
* eval db.writeln('"4b6752ae-65d6-44b5-98ef-1fc30f4fd92d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4b6752ae-65d6-44b5-98ef-1fc30f4fd92d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4b6752ae-65d6-44b5-98ef-1fc30f4fd92d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.241:82]
c474b492-da63-4a33-9bdd-b3709ce2cd6c
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.241 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c474b492-da63-4a33-9bdd-b3709ce2cd6c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c474b492-da63-4a33-9bdd-b3709ce2cd6c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:23.750 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholnacht/v2/wms?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:23.751 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.752 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.752 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:23.753 [print] Beheer PDOK
57
* print operateson
0
04:56:23.754 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:23.755 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.756 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.757 [print] "true";"true"
76
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c474b492-da63-4a33-9bdd-b3709ce2cd6c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.242:82]
7827b68f-647e-46cc-a02a-cac48eaa5dda
ms: 585
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.256 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
13
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7827b68f-647e-46cc-a02a-cac48eaa5dda'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7827b68f-647e-46cc-a02a-cac48eaa5dda'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
5
45
* print connectUrl
0
04:56:23.810 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholnacht/v2/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:23.811 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:23.812 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.812 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:23.813 [print] Beheer PDOK
57
* print operateson
0
04:56:23.814 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=58d39928-f502-48c9-a8c1-03244dc181bf#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
19
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
4
64
* print corConformanceHref
0
04:56:23.838 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.839 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.840 [print] "true";"true"
76
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7827b68f-647e-46cc-a02a-cac48eaa5dda","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.243:82]
4f4c7848-1767-4c67-be08-87d45d07f313
ms: 621
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.310 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '4f4c7848-1767-4c67-be08-87d45d07f313'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
574
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4f4c7848-1767-4c67-be08-87d45d07f313'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:23.909 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:23.911 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:56:23.914 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:23.914 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:56:23.917 [print] Beheer PDOK
57
* print operateson
0
04:56:23.918 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:23.924 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
4
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:23.928 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:23.931 [print] "true";"true"
76
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"4f4c7848-1767-4c67-be08-87d45d07f313","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.244:82]
82541a1f-2e4e-459f-ab2f-e97cac3ad040
ms: 570
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.761 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '82541a1f-2e4e-459f-ab2f-e97cac3ad040'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '82541a1f-2e4e-459f-ab2f-e97cac3ad040'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:24.315 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebiedtypen\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:24.317 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
3
52
* print protocol2
0
04:56:24.319 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:24.320 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:24.322 [print] Beheer PDOK
57
* print operateson
0
04:56:24.322 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=03671a9e-6aaf-464d-be99-9aad25cef9e3
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:24.326 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:24.329 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:24.331 [print] "true";"true"
76
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"82541a1f-2e4e-459f-ab2f-e97cac3ad040","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.245:82]
f0c6fbfe-a172-4223-8af3-58f6a28c881d
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.842 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
528
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0c6fbfe-a172-4223-8af3-58f6a28c881d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:24.382 [print] https://service.pdok.nl/cbs/hh/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:24.382 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:24.383 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:24.383 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:24.384 [print] Beheer PDOK
57
* print operateson
0
04:56:24.384 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=12bb57cd-73e0-41ba-a1e9-6d986b9109d3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:24.385 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:24.386 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:24.387 [print] "true";"true"
76
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f0c6fbfe-a172-4223-8af3-58f6a28c881d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.246:82]
1fa220c2-5f2e-4943-a57e-c291cc35084b
ms: 665
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.843 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1fa220c2-5f2e-4943-a57e-c291cc35084b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
602
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1fa220c2-5f2e-4943-a57e-c291cc35084b'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:24.468 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsgebieden\/v2\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:24.470 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:56:24.473 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
1
54
* print protocol
0
04:56:24.473 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:56:24.476 [print] Beheer PDOK
57
* print operateson
0
04:56:24.477 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=f273941e-9c3b-43bc-b886-2d50d0bf9348#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
15
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:24.494 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:24.500 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:24.503 [print] "true";"true"
76
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
8
77
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1fa220c2-5f2e-4943-a57e-c291cc35084b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.247:82]
af4841b5-ce83-4edb-af41-429a21140316
ms: 598
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:23.934 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'af4841b5-ce83-4edb-af41-429a21140316'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
545
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af4841b5-ce83-4edb-af41-429a21140316'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
10
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
6
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:24.510 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
8
50
* print protocol1
0
04:56:24.518 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:56:24.520 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:24.520 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:56:24.523 [print] Beheer PDOK
57
* print operateson
0
04:56:24.523 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:24.527 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:24.530 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:24.532 [print] "true";"true"
76
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"af4841b5-ce83-4edb-af41-429a21140316","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.248:82]
b0119753-5625-4500-9df3-13823ff9868f
ms: 557
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:24.334 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b0119753-5625-4500-9df3-13823ff9868f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b0119753-5625-4500-9df3-13823ff9868f'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:24.877 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingtypen\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:24.879 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:24.880 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:24.880 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:24.883 [print] Beheer PDOK
57
* print operateson
0
04:56:24.883 [print] http://nationaalgeoregister.nl/geonetwork/srv/en/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=977e0e94-7aa9-4784-b2da-eaec44adb61b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:24.886 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:24.888 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:24.890 [print] "true";"true"
76
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b0119753-5625-4500-9df3-13823ff9868f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.249:82]
a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:24.390 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
512
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:24.908 [print] https://service.pdok.nl/kadaster/lu/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
0
50
* print protocol1
0
04:56:24.909 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:24.909 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:24.909 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:24.910 [print] Beheer PDOK
57
* print operateson
0
04:56:24.910 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a88#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:24.912 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:24.912 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:24.913 [print] "true";"true"
76
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a9a8e1cf-3f4e-4067-9842-ea2a6f2d2ed9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.250:82]
42f5363b-cea7-4163-a4e9-bc2d1a7a243c
ms: 533
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:24.513 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
1
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '42f5363b-cea7-4163-a4e9-bc2d1a7a243c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '42f5363b-cea7-4163-a4e9-bc2d1a7a243c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:25.039 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegennacht/v1/wfs?service=WFS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.040 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:25.041 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.041 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:25.042 [print] Beheer PDOK
57
* print operateson
0
04:56:25.042 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:25.044 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:25.045 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.046 [print] "true";"true"
76
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"42f5363b-cea7-4163-a4e9-bc2d1a7a243c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.251:82]
6a129fd1-0988-4b8a-975a-6ff134b6754a
ms: 553
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:24.536 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6a129fd1-0988-4b8a-975a-6ff134b6754a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
537
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6a129fd1-0988-4b8a-975a-6ff134b6754a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:25.082 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegennacht/v1/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.083 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:25.083 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.084 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:25.085 [print] Beheer PDOK
57
* print operateson
0
04:56:25.085 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=002d9127-c16d-4b8d-9f5e-102a8c8e36c4#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:25.086 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:25.087 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.088 [print] "true";"true"
76
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6a129fd1-0988-4b8a-975a-6ff134b6754a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.252:82]
62dc32f1-853c-416a-876b-6e083554f1b6
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:24.894 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62dc32f1-853c-416a-876b-6e083554f1b6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62dc32f1-853c-416a-876b-6e083554f1b6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:25.417 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegenetmaal/v1/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.417 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:25.418 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.418 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:25.419 [print] Beheer PDOK
57
* print operateson
0
04:56:25.419 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:25.420 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:25.421 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.422 [print] "true";"true"
76
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62dc32f1-853c-416a-876b-6e083554f1b6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.253:82]
80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a
ms: 571
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:24.916 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:25.457 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.457 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:25.458 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.458 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
24
56
* print organisationpath
0
04:56:25.482 [print] Beheer PDOK
57
* print operateson
0
04:56:25.482 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:25.484 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:25.485 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.486 [print] "true";"true"
76
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"80e015fa-f0e1-487e-a7e8-84a5ba7c4e7a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.254:82]
a1ed8a00-da07-472e-9627-99175d437c94
ms: 558
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.049 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a1ed8a00-da07-472e-9627-99175d437c94'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1ed8a00-da07-472e-9627-99175d437c94'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:25.582 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartschipholetmaal/v2/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.583 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
19
04:56:25.603 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.603 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:25.604 [print] Beheer PDOK
57
* print operateson
0
04:56:25.604 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=83dab947-387b-49df-8ad2-32bb10d46d38#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:25.605 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:25.606 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.607 [print] "true";"true"
76
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a1ed8a00-da07-472e-9627-99175d437c94","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.255:82]
e264c1e4-90fe-4968-bbf2-7019f6095348
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.092 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e264c1e4-90fe-4968-bbf2-7019f6095348'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e264c1e4-90fe-4968-bbf2-7019f6095348'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:25.617 [print] https://geodata.nationaalgeoregister.nl/ienw/geluidskaartspoorwegenetmaal/v1/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.618 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:25.619 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.619 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:25.620 [print] Beheer PDOK
57
* print operateson
0
04:56:25.620 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=c3c004ad-5387-4b00-a225-9afbcaa5d31b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:25.621 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:25.622 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.623 [print] "true";"true"
76
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"e264c1e4-90fe-4968-bbf2-7019f6095348","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.256:82]
caeb52a3-cbaa-4e9b-a23e-d4dc0335b506
ms: 516
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.425 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
2
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
490
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'caeb52a3-cbaa-4e9b-a23e-d4dc0335b506'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:25.925 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2020/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:25.926 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
1
04:56:25.928 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:25.929 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:56:25.930 [print] Beheer PDOK
57
* print operateson
1
04:56:25.930 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
1
04:56:25.932 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:25.934 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:25.935 [print] "true";"true"
76
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
2
78
* eval db.writeln('"caeb52a3-cbaa-4e9b-a23e-d4dc0335b506","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
4
Scenario: [1.257:82]
e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5
ms: 518
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.490 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:26.001 [print] https://service.pdok.nl/cbs/wb2021/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.002 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:26.003 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.003 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.004 [print] Beheer PDOK
57
* print operateson
1
04:56:26.005 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.006 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.007 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.008 [print] "true";"true"
76
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"e38a7188-4aa6-4c2e-ba5c-b8a2c172c4e5","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.258:82]
60dc9632-50c8-40b1-ac63-cd91b85352d2
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.612 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '60dc9632-50c8-40b1-ac63-cd91b85352d2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60dc9632-50c8-40b1-ac63-cd91b85352d2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:26.136 [print] https://service.pdok.nl/cbs/wb2021/wfs/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.137 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:26.138 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.138 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.139 [print] Beheer PDOK
57
* print operateson
1
04:56:26.140 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=524b1e94-1981-4ef6-be1f-482d309b5db8#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.141 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"http:\/\/inspire.ec.europa.eu\/id\/ats\/metadata\/2.0\/sds-invocable";"http:\/\/www.opengis.net\/def\/serviceType\/ogc\/wfs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.143 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"De service voldoet aan de requirements van de invocable conformance class";"De service voldoet aan de requirements van de WFS 2.0 conformance class"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.143 [print] "true";"true";"true"
76
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"60dc9632-50c8-40b1-ac63-cd91b85352d2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.259:82]
f917ffa9-1531-48ea-867e-0d413d85b05a
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.626 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f917ffa9-1531-48ea-867e-0d413d85b05a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
529
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f917ffa9-1531-48ea-867e-0d413d85b05a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:26.162 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.162 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:26.163 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.163 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.164 [print] Beheer PDOK
57
* print operateson
0
04:56:26.164 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.165 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.166 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.167 [print] "true";"true"
76
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f917ffa9-1531-48ea-867e-0d413d85b05a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.260:82]
03c48a93-1e31-4c69-92c6-9a7efecf67a9
ms: 528
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:25.946 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03c48a93-1e31-4c69-92c6-9a7efecf67a9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:26.469 [print] https://geodata.nationaalgeoregister.nl/digitaaltopografischbestand/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.470 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:26.470 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.470 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.471 [print] Beheer PDOK
57
* print operateson
0
04:56:26.471 [print] ["https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4b137b8-2317-42c2-aced-204c4216d68d&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=c4bed072-0fda-47b8-96fa-457a938b88fc&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification","https:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=3229e4d7-4bcd-4b94-819d-8e62de69ce2e&OUTPUTSCHEMA=http:\/\/www.isotc211.org\/2005\/gmd&ELEMENTSETNAME=full#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.473 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.473 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.474 [print] "true";"true"
76
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"03c48a93-1e31-4c69-92c6-9a7efecf67a9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.261:82]
3ac5737f-55ed-455d-8350-44af11b67fc3
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.012 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ac5737f-55ed-455d-8350-44af11b67fc3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
523
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ac5737f-55ed-455d-8350-44af11b67fc3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:26.542 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2019/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.543 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:26.544 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.544 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.545 [print] Beheer PDOK
57
* print operateson
0
04:56:26.545 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5c37d29a-006d-4136-8989-adfc35a1d4a7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.547 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.548 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.549 [print] "true";"true"
76
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ac5737f-55ed-455d-8350-44af11b67fc3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.262:82]
3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.147 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:26.677 [print] https://geodata.nationaalgeoregister.nl/wijkenbuurten2020/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.678 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:26.679 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.679 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.680 [print] Beheer PDOK
57
* print operateson
0
04:56:26.680 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=f1859b4d-93be-4fc8-9e91-0ecc2fa0f3b3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.681 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.682 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.683 [print] "true";"true"
76
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3c47e1a8-a6a2-45e4-bfec-0f334c9fbc9d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.263:82]
9c80458b-12c6-4d38-8f6d-387ab6e4ed21
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.169 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c80458b-12c6-4d38-8f6d-387ab6e4ed21'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
3
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:26.698 [print] https://geodata.nationaalgeoregister.nl/natura2000/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:26.699 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:26.699 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:26.699 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:26.700 [print] Beheer PDOK
57
* print operateson
0
04:56:26.700 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=8829e5dd-c861-4639-a6c8-fdbb6e3440d2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:26.702 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:26.703 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:26.704 [print] "true";"true"
76
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c80458b-12c6-4d38-8f6d-387ab6e4ed21","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.264:82]
b87a0095-2ad7-4dbb-81a1-fed060df79e1
ms: 529
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.477 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b87a0095-2ad7-4dbb-81a1-fed060df79e1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:27.002 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:27.002 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:27.003 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.003 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.004 [print] Beheer PDOK
57
* print operateson
0
04:56:27.004 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.005 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.006 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.006 [print] "true";"true"
76
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"b87a0095-2ad7-4dbb-81a1-fed060df79e1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.265:82]
f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.552 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
507
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:27.068 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbwegen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:27.069 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:27.070 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.070 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.071 [print] Beheer PDOK
57
* print operateson
0
04:56:27.072 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=a9b7026e-0a81-4813-93bd-ba49e6f28502#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.073 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.074 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.075 [print] "true";"true"
76
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"f2437a92-ddd3-4777-a1bc-fdf4b4a7fcb8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.266:82]
dd49e02c-ea87-4ffc-89dd-f888608d95b7
ms: 572
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.686 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
561
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'dd49e02c-ea87-4ffc-89dd-f888608d95b7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
0
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:27.254 [print] https://geodata.nationaalgeoregister.nl/nationaleparken/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:27.255 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:27.255 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.255 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.256 [print] Beheer PDOK
57
* print operateson
0
04:56:27.256 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=4961d305-fbb5-426a-9ba3-53e1ca5f3b18#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.257 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.258 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.259 [print] "true";"true"
76
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"dd49e02c-ea87-4ffc-89dd-f888608d95b7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.267:82]
1c9b43c3-064d-40c3-aa7c-879b7376ef6f
ms: 568
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:26.707 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1c9b43c3-064d-40c3-aa7c-879b7376ef6f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
548
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c9b43c3-064d-40c3-aa7c-879b7376ef6f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
6
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:27.267 [print] https:\/\/geodata.nationaalgeoregister.nl\/wko\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:27.268 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:27.268 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.268 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.269 [print] Beheer PDOK
57
* print operateson
0
04:56:27.269 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc5b522e-3e14-4738-9e8e-2401e1b19ef2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.272 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.273 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.275 [print] "true";"true"
76
* eval db.writeln('"1c9b43c3-064d-40c3-aa7c-879b7376ef6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1c9b43c3-064d-40c3-aa7c-879b7376ef6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1c9b43c3-064d-40c3-aa7c-879b7376ef6f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.268:82]
5856173c-e58d-4b4c-8f9b-046ee1f20c1c
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.009 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '5856173c-e58d-4b4c-8f9b-046ee1f20c1c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5856173c-e58d-4b4c-8f9b-046ee1f20c1c'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
6
04:56:27.532 [print] https:\/\/geodata.nationaalgeoregister.nl\/wko\/wfs?service=WFS&request=Getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
1
04:56:27.533 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
1
04:56:27.534 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.535 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
1
04:56:27.536 [print] Beheer PDOK
57
* print operateson
1
04:56:27.537 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dc5b522e-3e14-4738-9e8e-2401e1b19ef2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.539 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:27.540 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.541 [print] "true";"true"
76
* eval db.writeln('"5856173c-e58d-4b4c-8f9b-046ee1f20c1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"5856173c-e58d-4b4c-8f9b-046ee1f20c1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"5856173c-e58d-4b4c-8f9b-046ee1f20c1c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.269:82]
ceda1b88-32ac-40b2-a841-71eb041c9427
ms: 564
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.079 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ceda1b88-32ac-40b2-a841-71eb041c9427'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ceda1b88-32ac-40b2-a841-71eb041c9427'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
5
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
8
04:56:27.635 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:27.636 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:27.637 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.637 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.638 [print] Beheer PDOK
57
* print operateson
0
04:56:27.638 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.640 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.641 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.642 [print] "true";"true"
76
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ceda1b88-32ac-40b2-a841-71eb041c9427","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.270:82]
8abcd2d1-3beb-43e5-a572-2b2da05a0a98
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.261 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8abcd2d1-3beb-43e5-a572-2b2da05a0a98'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:27.794 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
5
04:56:27.800 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:27.801 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.802 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.803 [print] Beheer PDOK
57
* print operateson
0
04:56:27.803 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.804 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.805 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.806 [print] "true";"true"
76
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8abcd2d1-3beb-43e5-a572-2b2da05a0a98","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.271:82]
598c4109-21d2-4a6c-b083-9975a6736849
ms: 562
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.277 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '598c4109-21d2-4a6c-b083-9975a6736849'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
547
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '598c4109-21d2-4a6c-b083-9975a6736849'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:27.833 [print] https:\/\/geodata.nationaalgeoregister.nl\/nwbvaarwegen\/wms?request=getCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:27.833 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:27.834 [print] ["OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:27.835 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:27.835 [print] Beheer PDOK
57
* print operateson
0
04:56:27.836 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=00d8c7c8-98ff-4b06-8f53-b44216e6e75c#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:27.837 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:27.839 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:27.839 [print] "true";"true"
76
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"598c4109-21d2-4a6c-b083-9975a6736849","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.272:82]
578f993f-4d0b-4c4a-a08b-dfa9e1d1376e
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.545 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '578f993f-4d0b-4c4a-a08b-dfa9e1d1376e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.074 [print] https:\/\/geodata.nationaalgeoregister.nl\/nhi\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.075 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.076 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.076 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.077 [print] Beheer PDOK
57
* print operateson
0
04:56:28.077 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=710c381c-ab2d-45d5-a45d-af2eba811e5f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.079 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.079 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.080 [print] "true";"true"
76
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"578f993f-4d0b-4c4a-a08b-dfa9e1d1376e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.273:82]
40f04047-3b61-40eb-b026-c1a0caa71881
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.646 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '40f04047-3b61-40eb-b026-c1a0caa71881'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '40f04047-3b61-40eb-b026-c1a0caa71881'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.169 [print] https:\/\/geodata.nationaalgeoregister.nl\/reststromen\/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.170 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.171 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.171 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.172 [print] Beheer PDOK
57
* print operateson
0
04:56:28.172 [print] ["http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=11d83e36-fd0d-46bc-838c-0567c5dfdb19#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=34dacd72-d2fb-4e28-844d-73d3b9c3fef2#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=419b85e5-04ee-4cc9-b910-bc58594a943a#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=119f7512-a71e-4d1a-82e7-7a2b63f9338b#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=6ea55ec4-f312-40ef-9935-68806e61b496#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=af784610-df36-4d40-bac0-23d8e728999f#MD_DataIdentification","http:\/\/nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http:\/\/www.isotc211.org\/2005\/gmd&elementsetname=full&id=24eb504e-f5f3-4ecf-b760-cc5630e82a57#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.174 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.175 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.176 [print] "true";"true"
76
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
1
78
* eval db.writeln('"40f04047-3b61-40eb-b026-c1a0caa71881","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.274:82]
972edbaa-f860-4c48-b449-4f238a263472
ms: 574
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.810 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '972edbaa-f860-4c48-b449-4f238a263472'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
557
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '972edbaa-f860-4c48-b449-4f238a263472'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.375 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wfs?request=GetCapabilities&service=wfs
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.376 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.376 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.377 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.378 [print] Beheer PDOK
57
* print operateson
0
04:56:28.378 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.380 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.383 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.383 [print] "true";"true"
76
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"972edbaa-f860-4c48-b449-4f238a263472","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.275:82]
3dc373ae-fcf6-49c9-b315-9a2178bffe4a
ms: 581
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:27.843 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
568
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3dc373ae-fcf6-49c9-b315-9a2178bffe4a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.421 [print] https://geodata.nationaalgeoregister.nl/restwarmte/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.422 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.422 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.422 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.423 [print] Beheer PDOK
57
* print operateson
0
04:56:28.423 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=d6b85d84-cdb9-4a6e-b799-cf8826e22a94#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.424 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.425 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.426 [print] "true";"true"
76
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3dc373ae-fcf6-49c9-b315-9a2178bffe4a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.276:82]
1bd24d1e-aa13-4395-809e-893570f7c651
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.084 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1bd24d1e-aa13-4395-809e-893570f7c651'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
535
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1bd24d1e-aa13-4395-809e-893570f7c651'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.627 [print] https://geodata.nationaalgeoregister.nl/overheidsdiensten/wms?request=GetCapabilities&service=wms
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.627 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.628 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.628 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
5
04:56:28.635 [print] Beheer PDOK
57
* print operateson
0
04:56:28.636 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=c935f2ab-9b65-4dc4-94a0-73aeb840a941#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.637 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
4
04:56:28.642 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.643 [print] "true";"true"
76
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1bd24d1e-aa13-4395-809e-893570f7c651","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.277:82]
171b28f6-7ee7-46f9-b3b3-06d0baaa33db
ms: 523
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.179 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '171b28f6-7ee7-46f9-b3b3-06d0baaa33db'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.696 [print] https:\/\/service.pdok.nl\/cbs\/pd\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.697 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.698 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.698 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.699 [print] Beheer PDOK
57
* print operateson
0
04:56:28.699 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=76541ebb-a554-4540-a017-399d4bb4a860#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.700 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.701 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.702 [print] "true";"true"
76
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"171b28f6-7ee7-46f9-b3b3-06d0baaa33db","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.278:82]
918388cf-9d8c-4264-b108-3e375bde0d52
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.386 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '918388cf-9d8c-4264-b108-3e375bde0d52'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '918388cf-9d8c-4264-b108-3e375bde0d52'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:28.905 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.906 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.907 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.907 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.908 [print] Beheer PDOK
57
* print operateson
0
04:56:28.908 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.909 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.910 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.911 [print] "true";"true"
76
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"918388cf-9d8c-4264-b108-3e375bde0d52","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.279:82]
62c0d0a5-5826-406d-a625-d84bc5fec800
ms: 513
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.430 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '62c0d0a5-5826-406d-a625-d84bc5fec800'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
498
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '62c0d0a5-5826-406d-a625-d84bc5fec800'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
1
04:56:28.935 [print] https:\/\/geodata.nationaalgeoregister.nl\/noordzeevaarwegmarkeringenrd\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:28.936 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:28.937 [print] ["OGC:WFS","OGC:WFS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:28.937 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:28.938 [print] Beheer PDOK
57
* print operateson
0
04:56:28.939 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=be1b1514-8d1f-48e1-9624-fee9b784138b#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:28.940 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:28.942 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:28.943 [print] "true";"true"
76
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"62c0d0a5-5826-406d-a625-d84bc5fec800","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.280:82]
609d0c9e-173f-4f90-b020-c91ab3a0b6ef
ms: 602
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.648 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
570
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '609d0c9e-173f-4f90-b020-c91ab3a0b6ef'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.226 [print] https:\/\/geodata.nationaalgeoregister.nl\/rdinfo\/wms?service=WMS&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.228 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.229 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.229 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.230 [print] Beheer PDOK
57
* print operateson
0
04:56:29.230 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.232 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.233 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
17
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.250 [print] "true";"true"
76
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"609d0c9e-173f-4f90-b020-c91ab3a0b6ef","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.281:82]
3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd
ms: 605
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.706 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
590
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.304 [print] https:\/\/geodata.nationaalgeoregister.nl\/rdinfo\/wfs?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.305 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.306 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.307 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.308 [print] Beheer PDOK
57
* print operateson
0
04:56:29.308 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=29c17585-e702-463f-a5dc-99d34b17d333#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.309 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.310 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.311 [print] "true";"true"
76
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3ebe56dc-5f09-4fb3-b224-55c2db4ca2fd","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.282:82]
280cee65-1b66-4973-a569-75122e0b745b
ms: 512
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.914 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '280cee65-1b66-4973-a569-75122e0b745b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
495
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280cee65-1b66-4973-a569-75122e0b745b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.418 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wfs\/v1_0?request=GetCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.419 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.420 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.421 [print] ["OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.421 [print] Beheer PDOK
57
* print operateson
0
04:56:29.422 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.424 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.425 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.426 [print] "true";"true"
76
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"280cee65-1b66-4973-a569-75122e0b745b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.283:82]
3e65fa1b-9bb1-41bd-9760-76962751b839
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:28.946 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '3e65fa1b-9bb1-41bd-9760-76962751b839'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e65fa1b-9bb1-41bd-9760-76962751b839'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.477 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/verkeersscheidingsstelsel\/wms\/v2_0?service=WMS&request=getcapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.478 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.478 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.478 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.479 [print] Beheer PDOK
57
* print operateson
0
04:56:29.479 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=5996e444-f7f3-40d2-b485-8b9af6e8aa89#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.481 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.481 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.483 [print] "true";"true"
76
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"3e65fa1b-9bb1-41bd-9760-76962751b839","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.284:82]
108fec55-e467-4d04-ab35-fd0d7060e3e2
ms: 518
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.254 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
1
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '108fec55-e467-4d04-ab35-fd0d7060e3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
501
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '108fec55-e467-4d04-ab35-fd0d7060e3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.766 [print] https:\/\/geodata.nationaalgeoregister.nl\/rws\/richtlijnstedelijkafvalwater2015\/wms\/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.767 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.768 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.768 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.769 [print] Beheer PDOK
57
* print operateson
0
04:56:29.769 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=uwwtd-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.770 [print] "https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1";"http:\/\/data.europa.eu\/eli\/reg\/2009\/976"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.771 [print] "Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.772 [print] "true";"true"
76
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"108fec55-e467-4d04-ab35-fd0d7060e3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.285:82]
2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0
ms: 528
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.314 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
3
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.836 [print] https://geodata.nationaalgeoregister.nl/rws/richtlijnoverstromingsrisico2018/wms/v1_0?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.837 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.838 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.838 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.839 [print] Beheer PDOK
57
* print operateson
0
04:56:29.839 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=rorl-9d8e-4758-83fx-28b057f185g1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.841 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.841 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.842 [print] "true";"true"
76
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"2ca26f5e-0b39-48a4-9e8d-7b9ffde9a5b0","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.286:82]
6c62e0a5-c215-4e47-94b0-a239e264417d
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.429 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '6c62e0a5-c215-4e47-94b0-a239e264417d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
530
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c62e0a5-c215-4e47-94b0-a239e264417d'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
2
34
* def title = get response //citation/CI_Citation/title/CharacterString
2
35
* def email = get response //electronicMailAddress/CharacterString
2
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
2
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
2
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.974 [print] https:\/\/geodata.nationaalgeoregister.nl\/plu\/wms?request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.976 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.977 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.977 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:29.980 [print] Beheer PDOK
57
* print operateson
0
04:56:29.980 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=17716ed7-ce0d-4bfd-8868-a398e5578a36#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
2
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
2
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:29.983 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
2
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:29.985 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
2
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:29.988 [print] "true";"true"
76
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"6c62e0a5-c215-4e47-94b0-a239e264417d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.287:82]
ebd029f5-6e8f-4d61-b89a-11427c96bf3a
ms: 516
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.486 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
503
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ebd029f5-6e8f-4d61-b89a-11427c96bf3a'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:29.996 [print] https:\/\/inspire.caris.nl\/gs4\/LAT2018OF\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:29.997 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:29.998 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:29.998 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:29.999 [print] Ministerie van Defensie, Koninklijke Marine, Dienst der Hydrografie
57
* print operateson
0
04:56:29.999 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?Service=CSW&Request=GetRecordById&Version=2.0.2&id=be6551de-a709-4c6d-a5e2-f63f0cf038ba&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.000 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:30.001 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"";"Webservice is conform";"Technical Guidance for the implementation of INSPIRE View Services v3.0";"Webservice is conform"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.002 [print] "true";"true"
76
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"ebd029f5-6e8f-4d61-b89a-11427c96bf3a","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.288:82]
a299a4af-ccd8-4d32-b1fb-ffab77b32e0e
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.775 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'a299a4af-ccd8-4d32-b1fb-ffab77b32e0e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
532
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a299a4af-ccd8-4d32-b1fb-ffab77b32e0e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:30.315 [print] https://www.broinspireservices.nl/wfs/osgegmw-a-v1.0?request=GetCapabilities&service=WFS&version=2.0.0
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:30.316 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:30.317 [print] OGC:WFS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:30.317 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:30.317 [print] TNO Geologische Dienst Nederland
57
* print operateson
0
04:56:30.317 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&ID=f99e915a-75e5-4c36-97f2-61eff692d85b&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&ELEMENTSETNAME=full#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.319 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:30.320 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Zie verordening";"Technical Guidance for the implementation of INSPIRE Download Services";"Zie specificatie"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.320 [print] "true";"true"
76
* eval db.writeln('"a299a4af-ccd8-4d32-b1fb-ffab77b32e0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"a299a4af-ccd8-4d32-b1fb-ffab77b32e0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"a299a4af-ccd8-4d32-b1fb-ffab77b32e0e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.289:82]
88a93a3b-d522-4c5d-9b0f-c6c39a118442
ms: 545
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.845 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '88a93a3b-d522-4c5d-9b0f-c6c39a118442'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
527
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88a93a3b-d522-4c5d-9b0f-c6c39a118442'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:30.380 [print] https://geodata.nationaalgeoregister.nl/inspire/su-vector/wms?&request=GetCapabilities&service=WMS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:30.382 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:30.382 [print] OGC:WMS
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:30.382 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:56:30.386 [print] Beheer PDOK
57
* print operateson
1
04:56:30.386 [print] https://www.nationaalgeoregister.nl:443/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=10d1153e-778f-4995-9b6c-7c69b196cccb#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.388 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:30.389 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE View Services v3.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.391 [print] "true";"true"
76
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"88a93a3b-d522-4c5d-9b0f-c6c39a118442","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.290:82]
52d0313e-0d2b-44b4-b51e-d9e504307f70
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:29.991 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '52d0313e-0d2b-44b4-b51e-d9e504307f70'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
514
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '52d0313e-0d2b-44b4-b51e-d9e504307f70'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:30.512 [print] https://service.pdok.nl/bzk/bro-environmental-monitoring-facilities/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:30.513 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:30.513 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:30.513 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:30.514 [print] Beheer PDOK
57
* print operateson
0
04:56:30.514 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=dff9c760-1380-11eb-adc1-0242ac120002#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.515 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-download-services"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:30.516 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.517 [print] "true";"true"
76
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"52d0313e-0d2b-44b4-b51e-d9e504307f70","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.291:82]
9c4862c3-0bab-49c3-bc2f-ac5486826766
ms: 604
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.006 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '9c4862c3-0bab-49c3-bc2f-ac5486826766'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
562
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9c4862c3-0bab-49c3-bc2f-ac5486826766'
2
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
3
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
3
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
3
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
2
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
2
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
2
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:30.592 [print] https:\/\/geodata.nationaalgeoregister.nl\/habitatrichtlijnverspreidingsoorten\/v2\/wfs?request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
2
50
* print protocol1
0
04:56:30.594 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
2
52
* print protocol2
0
04:56:30.596 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:30.596 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
3
56
* print organisationpath
0
04:56:30.599 [print] Beheer PDOK
57
* print operateson
0
04:56:30.599 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=28c4780a-1a44-4376-b283-14a50a481729#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
3
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
3
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.605 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:30.607 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
3
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.610 [print] "true";"true"
76
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"9c4862c3-0bab-49c3-bc2f-ac5486826766","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.292:82]
56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9
ms: 524
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.323 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
1
25
And param request = 'GetRecordById'
0
26
And param id = '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
511
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:30.843 [print] https://service.pdok.nl/bzk/bro-geomorfologischekaart/atom/v1_0/index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:30.844 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:30.845 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:30.845 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:30.845 [print] Beheer PDOK
57
* print operateson
0
04:56:30.845 [print] ["https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=8f52e76f-c96d-4df3-a778-279c2164372b#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=459231d0-7379-4f26-a444-7616e1d888f0#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
0
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.847 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:30.847 [print] #notpresent
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
0
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.848 [print] #notpresent
76
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"56e8ce20-0e6f-4ef2-8c09-6e30bc3680b9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.293:82]
92826f1e-040d-4099-b9e1-cab6bfc520af
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.394 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '92826f1e-040d-4099-b9e1-cab6bfc520af'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '92826f1e-040d-4099-b9e1-cab6bfc520af'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
0
04:56:30.920 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:30.921 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:30.922 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:30.922 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:30.923 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:30.924 [print] https://haleconnect.com/services/bsp/org.874.c7d1b83d-8237-44c4-9e07-420eb63dcf84/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:30.925 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:30.926 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:30.927 [print] true
76
* eval db.writeln('"92826f1e-040d-4099-b9e1-cab6bfc520af","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"92826f1e-040d-4099-b9e1-cab6bfc520af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"92826f1e-040d-4099-b9e1-cab6bfc520af","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.294:82]
1c0dcc64-91aa-4d44-a9e3-54355556f5e7
ms: 537
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.519 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c0dcc64-91aa-4d44-a9e3-54355556f5e7'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.050 [print] https:\/\/service.pdok.nl\/lv\/bag\/wfs\/v2_0?request=getCapabilities&service=WFS
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.051 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.052 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.052 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.053 [print] Beheer PDOK
57
* print operateson
0
04:56:31.053 [print] http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=aa3b5e6e-7baa-40c0-8972-3353e927ec2f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.054 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:31.055 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Technical Guidance for the implementation of INSPIRE Download Services v3.11";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.056 [print] "true";"true"
76
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"1c0dcc64-91aa-4d44-a9e3-54355556f5e7","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.295:82]
deb81ebe-c7a7-42ba-bc21-f07cd348c3e8
ms: 544
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.613 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'deb81ebe-c7a7-42ba-bc21-f07cd348c3e8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.148 [print] https://nationaalgeoregister.nl/geonetwork/srv/dut/csw-inspire?request=GetCapabilities&Service=CSW&Version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.148 [print] OGC:CSW
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.149 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.149 [print] OGC:CSW
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.150 [print] Beheer PDOK
57
* print operateson
0
04:56:31.150 [print] #notpresent
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.151 [print] "https:\/\/eur-lex.europa.eu\/eli\/reg\/2009\/976";"https:\/\/eur-lex.europa.eu\/eli\/reg\/2010\/1089";"https:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-discovery-services-0"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
3
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
1
04:56:31.155 [print] "Deze service is conform INSPIRE richtlijn betreffende netwerkdiensten";"Deze service is conform INSPIRE richtlijn betreffende diensten met betrekking tot ruimtelijke gegevens";"Deze service is conform de Technical Guidance for INSPIRE Discovery Services"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.157 [print] "true";"true";"true"
76
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"deb81ebe-c7a7-42ba-bc21-f07cd348c3e8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.296:82]
bfcc588f-9393-4c70-b989-d9e92ac2f493
ms: 536
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.851 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
519
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bfcc588f-9393-4c70-b989-d9e92ac2f493'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.378 [print] https:\/\/geodata.nationaalgeoregister.nl\/ahn3\/wcs?&service=wcs&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.379 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.380 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.381 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.382 [print] Beheer PDOK
57
* print operateson
0
04:56:31.382 [print] ["https:\/\/www.nationaalgeoregister.nl:443\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification","https:\/\/www.nationaalgeoregister.nl\/geonetwork\/srv\/dut\/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http:\/\/www.isotc211.org\/2005\/gmd&elementSetName=full&id=41daef8b-155e-4608-b49c-c87ea45d931c#MD_DataIdentification"]
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.384 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:31.385 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"de service is conform";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.387 [print] "true";"true"
76
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"bfcc588f-9393-4c70-b989-d9e92ac2f493","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.297:82]
adn573b0-bd3b-4d7b-a97d-e65841e6e0b2
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:30.931 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.446 [print] https:\/\/geo.rijkswaterstaat.nl\/services\/ogc\/gdr\/bodemhoogte_1mtr\/ows?service=WCS&request=getcapabilities&version=2.0.1
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.448 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.449 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.449 [print] ["OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS","OGC:WCS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.450 [print] Rijkswaterstaat
57
* print operateson
0
04:56:31.450 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.452 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:31.454 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.455 [print] "false";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.298:82]
adn83730-e750-485a-9c0c-39bf9bt72cf8
ms: 520
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.059 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn83730-e750-485a-9c0c-39bf9bt72cf8'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn83730-e750-485a-9c0c-39bf9bt72cf8'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.573 [print] https://www.rijkswaterstaat.nl/apps/geoservices/geodata/dmc/bodemhoogte_5mtr_atom_index.xml
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.574 [print] INSPIRE Atom
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.575 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.575 [print] INSPIRE Atom
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.576 [print] Rijkswaterstaat
57
* print operateson
0
04:56:31.576 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.577 [print] http://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-download-services
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:31.578 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.579 [print] "true";"true"
76
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn83730-e750-485a-9c0c-39bf9bt72cf8","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.299:82]
eu-75565-db8b-4df7-a3a6-0e9ca5289e5e
ms: 540
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.160 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-75565-db8b-4df7-a3a6-0e9ca5289e5e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-75565-db8b-4df7-a3a6-0e9ca5289e5e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.693 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.694 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.695 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.695 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.696 [print] Rijkswaterstaat
57
* print operateson
0
04:56:31.697 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.698 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:31.699 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.700 [print] "true";"true"
76
* eval db.writeln('"eu-75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-75565-db8b-4df7-a3a6-0e9ca5289e5e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.300:82]
eu-6144d-231b-4a52-91d5-edde65076aff
ms: 538
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.390 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
2
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-6144d-231b-4a52-91d5-edde65076aff'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-6144d-231b-4a52-91d5-edde65076aff'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.922 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.2350b86b-3efd-47e4-883e-519bfa8d0aba_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.923 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.923 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.924 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.924 [print] Rijkswaterstaat
57
* print operateson
0
04:56:31.925 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fa-28b057f185e1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.926 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:31.927 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:31.928 [print] true
76
* eval db.writeln('"eu-6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-6144d-231b-4a52-91d5-edde65076aff","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.301:82]
adn573b0-bd3b-4d7b-a97d-e65841e6e0b1
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.462 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
2
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
6
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:31.994 [print] https://inspire.caris.nl/geoserver3/rws/wcs?service=WCS&version=2.0.1&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:31.995 [print] OGC:WCS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:31.996 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:31.996 [print] OGC:WCS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:31.997 [print] Rijkswaterstaat
57
* print operateson
0
04:56:31.997 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:31.999 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/download-wcs"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.000 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.001 [print] "true";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.302:82]
adn573b0-bd3b-4d7b-a97d-e65841e6e0b3
ms: 547
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.583 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b3'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
531
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b3'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:32.123 [print] https://inspire.caris.nl/geoserver3/rws/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:32.124 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:32.125 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:32.125 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:32.126 [print] Rijkswaterstaat
57
* print operateson
0
04:56:32.126 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:32.128 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.129 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.130 [print] "false";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b3","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.303:82]
adn573b0-bd3b-4d7b-a97d-e65841e6e0b4
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.703 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b4'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
506
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn573b0-bd3b-4d7b-a97d-e65841e6e0b4'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
3
35
* def email = get response //electronicMailAddress/CharacterString
3
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:32.224 [print] https:\/\/www.rijkswaterstaat.nl\/apps\/geoservices\/geodata\/dmc\/bodemhoogte_1mtr_insp
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
3
50
* print protocol1
0
04:56:32.227 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:32.228 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:32.228 [print] ["landingpage","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
2
56
* print organisationpath
0
04:56:32.231 [print] Rijkswaterstaat
57
* print operateson
1
04:56:32.231 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=9d973c4a-ef03-4785-b7f6-942e86b385f7#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:32.234 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.235 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.237 [print] "true";"true"
76
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"adn573b0-bd3b-4d7b-a97d-e65841e6e0b4","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.304:82]
eu-rsa-ce69-4ce4-b853-4ab65f6a424d
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:31.931 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
1
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-rsa-ce69-4ce4-b853-4ab65f6a424d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
533
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-rsa-ce69-4ce4-b853-4ab65f6a424d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:32.473 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:32.474 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:32.475 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:32.475 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:32.476 [print] Rijkswaterstaat
57
* print operateson
0
04:56:32.476 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:32.478 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.479 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.479 [print] "true";"true"
76
* eval db.writeln('"eu-rsa-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-rsa-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-rsa-ce69-4ce4-b853-4ab65f6a424d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.305:82]
eu-rsa-e89d-441f-a848-9e4fe5d48400
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.004 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-rsa-e89d-441f-a848-9e4fe5d48400'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-rsa-e89d-441f-a848-9e4fe5d48400'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:32.536 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.917b5ba0-4fdd-4654-8c18-b3ccdadaa550_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:32.537 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:32.537 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:32.538 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
2
04:56:32.540 [print] Rijkswaterstaat
57
* print operateson
0
04:56:32.540 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fa-28b057f185e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:32.542 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.542 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.543 [print] true
76
* eval db.writeln('"eu-rsa-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-rsa-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-rsa-e89d-441f-a848-9e4fe5d48400","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.306:82]
eu-rsa-9d36-46ce-8ac9-a208103c218e
ms: 535
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.133 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-rsa-9d36-46ce-8ac9-a208103c218e'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
522
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-rsa-9d36-46ce-8ac9-a208103c218e'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:32.663 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:32.663 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
0
52
* print protocol2
0
04:56:32.664 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:32.664 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:32.665 [print] Rijkswaterstaat
57
* print operateson
0
04:56:32.665 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:32.666 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.667 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.668 [print] "true";"true"
76
* eval db.writeln('"eu-rsa-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-rsa-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-rsa-9d36-46ce-8ac9-a208103c218e","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.307:82]
eu-rsa-365c-4848-b885-5823259ca7c9
ms: 531
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.240 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-rsa-365c-4848-b885-5823259ca7c9'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
518
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-rsa-365c-4848-b885-5823259ca7c9'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:32.765 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.cefad637-5ffd-4dd0-b475-bc125a11f7e6_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:32.766 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:32.767 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:32.767 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:32.768 [print] Rijkswaterstaat
57
* print operateson
0
04:56:32.768 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fa-28b057f185e3#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:32.769 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:32.770 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:32.771 [print] true
76
* eval db.writeln('"eu-rsa-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-rsa-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-rsa-365c-4848-b885-5823259ca7c9","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.308:82]
wt-43309-c655-4e64-b914-149050fd479c
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.483 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'wt-43309-c655-4e64-b914-149050fd479c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
521
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-43309-c655-4e64-b914-149050fd479c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.012 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.013 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.013 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.014 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.014 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.015 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=wt-83730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.016 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.017 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.017 [print] "true";"true"
76
* eval db.writeln('"wt-43309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"wt-43309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"wt-43309-c655-4e64-b914-149050fd479c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.309:82]
wt-c9463-a3da-401d-8251-8c6664865e0c
ms: 534
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.546 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'wt-c9463-a3da-401d-8251-8c6664865e0c'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
520
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-c9463-a3da-401d-8251-8c6664865e0c'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.073 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.504afbe6-0069-411b-b69b-2aae3728f735_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.074 [print] OGC:WFS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.075 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.075 [print] OGC:WFS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.076 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.076 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=wt-83730-e750-485a-9c0c-39bf9be72cf8#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.078 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.079 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.080 [print] true
76
* eval db.writeln('"wt-c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"wt-c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"wt-c9463-a3da-401d-8251-8c6664865e0c","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.310:82]
tbjk534p-wubf-crbp-cj25-d41611f0gfim
ms: 532
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.670 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'tbjk534p-wubf-crbp-cj25-d41611f0gfim'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
513
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d41611f0gfim'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.193 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.195 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.196 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.196 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.197 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.197 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=tbjk534p-wubf-crbp-cj25-d4161160gfim#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.200 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.201 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.202 [print] true
76
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611f0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.311:82]
tbjk534p-wubf-crbp-cj25-d41611m0gfim
ms: 543
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:32.774 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'tbjk534p-wubf-crbp-cj25-d41611m0gfim'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
526
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d41611m0gfim'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.309 [print] https:\/\/marineprojects.openearth.nl\/geoserver\/ihm_krm\/wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.310 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.311 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.311 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.312 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.312 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputschema=http://www.isotc211.org/2005/gmd&elementsetname=full&id=tbjk534p-wubf-crbp-cj25-d4161160gfim#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.314 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.315 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.316 [print] "true";"true"
76
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"tbjk534p-wubf-crbp-cj25-d41611m0gfim","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.312:82]
eu-7ab54-da5c-46ea-a5b5-53df01873240
ms: 520
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.039 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
2
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-7ab54-da5c-46ea-a5b5-53df01873240'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
504
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-7ab54-da5c-46ea-a5b5-53df01873240'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.554 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wms?SERVICE=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.554 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.555 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.555 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.556 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.556 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.558 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.559 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.559 [print] "true";"true"
76
* eval db.writeln('"eu-7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-7ab54-da5c-46ea-a5b5-53df01873240","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.313:82]
eu-d9417-a69f-4665-bc42-8c6d84e5dedb
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.083 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-d9417-a69f-4665-bc42-8c6d84e5dedb'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
504
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-d9417-a69f-4665-bc42-8c6d84e5dedb'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.595 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.c3955762-73a3-4c16-a15c-f3869487a1e3_wfs?SERVICE=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.595 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.596 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.596 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.597 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.597 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-f297898-2640-44c2-bbe9-c0480da83794#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.598 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.599 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.600 [print] true
76
* eval db.writeln('"eu-d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-d9417-a69f-4665-bc42-8c6d84e5dedb","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.314:82]
eu-ecda1-2216-4100-96dc-6bede78f9813
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.205 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-ecda1-2216-4100-96dc-6bede78f9813'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-ecda1-2216-4100-96dc-6bede78f9813'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.724 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.725 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.725 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.726 [print] ["OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.727 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.727 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fx-28b057f185e1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.728 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.729 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.730 [print] "true";"true"
76
* eval db.writeln('"eu-ecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"eu-ecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-ecda1-2216-4100-96dc-6bede78f9813","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.315:82]
eu-e37cb-537f-4d98-8c03-820ee2d872d6
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.320 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-e37cb-537f-4d98-8c03-820ee2d872d6'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
508
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-e37cb-537f-4d98-8c03-820ee2d872d6'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:33.836 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.7c48322f-f9cf-4a08-aa63-c4de080c13a1_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:33.837 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:33.838 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:33.838 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:33.839 [print] Rijkswaterstaat
57
* print operateson
0
04:56:33.839 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-9d8e-4758-83fx-28b057f185e1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:33.840 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:33.841 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:33.842 [print] true
76
* eval db.writeln('"eu-e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-e37cb-537f-4d98-8c03-820ee2d872d6","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.316:82]
eu-7e931-e1b9-4512-9ca2-61526439fd7b
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.562 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-7e931-e1b9-4512-9ca2-61526439fd7b'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
516
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-7e931-e1b9-4512-9ca2-61526439fd7b'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.086 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wms?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.087 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.088 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.088 [print] ["OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.089 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.089 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.091 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.092 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.092 [print] "true";"true"
76
* eval db.writeln('"eu-7e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-7e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-7e931-e1b9-4512-9ca2-61526439fd7b","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.317:82]
eu-3b602-8cbf-4cf0-9ce6-1b201e230ef1
ms: 549
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.603 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'eu-3b602-8cbf-4cf0-9ce6-1b201e230ef1'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
534
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-3b602-8cbf-4cf0-9ce6-1b201e230ef1'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.144 [print] https:\/\/haleconnect.com\/ows\/services\/org.292.6cef2128-a227-4aa7-bc74-0e3797644d51_wfs?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.145 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.146 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.147 [print] ["OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.148 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.148 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=eu-2c7040b-c448-451b-bf15-f2416ecaadd1#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.149 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.151 [print] "VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.152 [print] true
76
* eval db.writeln('"eu-3b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"eu-3b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"eu-3b602-8cbf-4cf0-9ce6-1b201e230ef1","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.318:82]
68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2
ms: 522
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.733 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
1
29
When method get
504
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.248 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.249 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.250 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.250 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.251 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.251 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.253 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.254 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.255 [print] "true";"true"
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06mcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.319:82]
68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:33.844 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.362 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WFS&version=2.0.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.363 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.364 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.364 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.365 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.365 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.367 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.368 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.369 [print] true
76
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"68ebd5c9-0ea1-4f22-9907-ec4c06fcd3e2","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.320:82]
cf69ec50-9849-4afd-853c-ee56211d336d
ms: 526
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.095 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf69ec50-9849-4afd-853c-ee56211d336d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee56211d336d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.615 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.616 [print] ["OGC:WMS","OGC:WMS","OGC:WFS","OGC:WFS","landingpage"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.616 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.617 [print] ["OGC:WMS","OGC:WMS","OGC:WFS","OGC:WFS","landingpage"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.617 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.617 [print] #notpresent
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.619 [print] "https:\/\/inspire.ec.europa.eu\/documents\/commission-regulation-eu-no-10892010-23-november-2010-implementing-directive-20072ec";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/ef";"http:\/\/inspire.ec.europa.eu\/id\/document\/tg\/of"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.620 [print] "De hier gehanteerde domeinen wijken af van de domeinen uit de dataspecificaties van INSPlRE";"De data wijkt af van de dataspecificaties op dit thema van INSPlRE";"De data wijkt af van de dataspecificaties op dit thema van INSPlRE"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.621 [print] "false";"false";"false"
76
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee56211d336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee56211d336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee56211d336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.321:82]
cf69ec50-9849-4afd-853c-ee5621fd336d
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.155 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf69ec50-9849-4afd-853c-ee5621fd336d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
524
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee5621fd336d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.687 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WFS&version=1.1.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.688 [print] ["OGC:WFS","OGC:WFS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.689 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.689 [print] ["OGC:WFS","OGC:WFS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.690 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.690 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cf69ec50-9849-4afd-853c-ee56211d336d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.691 [print] http://data.europa.eu/eli/reg/2009/976
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.692 [print] Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.693 [print] false
76
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621fd336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621fd336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621fd336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
1
Scenario: [1.322:82]
cf69ec50-9849-4afd-853c-ee5621md336d
ms: 525
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.258 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'cf69ec50-9849-4afd-853c-ee5621md336d'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
496
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee5621md336d'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:34.763 [print] https:\/\/waterwebservices.rijkswaterstaat.nl\/services\/distributielaagWFS\/distributielaag_dbo?service=WMS&version=1.3.0&request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:34.763 [print] ["OGC:WMS","OGC:WMS"]
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.764 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.764 [print] ["OGC:WMS","OGC:WMS"]
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.765 [print] Rijkswaterstaat
57
* print operateson
0
04:56:34.765 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/inspire?SERVICE=CSW&version=2.0.2&request=GetRecordById&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=cf69ec50-9849-4afd-853c-ee56211d336d#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.766 [print] "http:\/\/data.europa.eu\/eli\/reg\/2009\/976";"http:\/\/inspire.ec.europa.eu\/documents\/technical-guidance-implementation-inspire-view-services-1"
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:34.767 [print] "Conform verordening; validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1";"Conform technische specificatie; Validatie uitgevoerd met de ETF Validator voor INSPIRE view en downloadservices versie 1.4.1"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
16
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.783 [print] "false";"true"
76
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621md336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621md336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"cf69ec50-9849-4afd-853c-ee5621md336d","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.323:82]
24055de7-dcff-487a-8f9a-7aee4f0d8351
ms: 559
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.372 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '24055de7-dcff-487a-8f9a-7aee4f0d8351'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
510
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '24055de7-dcff-487a-8f9a-7aee4f0d8351'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
1
45
* print connectUrl
1
04:56:34.891 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wms/org.874.83f948b1-9293-4926-b64d-40857c792f1e?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
23
50
* print protocol1
0
04:56:34.915 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:34.916 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:34.916 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:34.917 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:34.917 [print] https://haleconnect.com/services/bsp/org.874.83f948b1-9293-4926-b64d-40857c792f1e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:34.919 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
10
04:56:34.930 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:34.931 [print] true
76
* eval db.writeln('"24055de7-dcff-487a-8f9a-7aee4f0d8351","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"24055de7-dcff-487a-8f9a-7aee4f0d8351","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"24055de7-dcff-487a-8f9a-7aee4f0d8351","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.324:82]
684ff4f6-1652-45a8-93f0-8e16d37b2a66
ms: 539
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.624 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '684ff4f6-1652-45a8-93f0-8e16d37b2a66'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
525
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '684ff4f6-1652-45a8-93f0-8e16d37b2a66'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:35.157 [print] https://geodata.nationaalgeoregister.nl/hwh/eenheden/wms/v1_0?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:35.158 [print] OGC:WMS
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:35.159 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:35.159 [print] OGC:WMS
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:35.160 [print] Beheer PDOK
57
* print operateson
0
04:56:35.160 [print] https://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw?service=CSW&request=GetRecordById&version=2.0.2&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full&id=2d4ec7e6-50ae-4c71-bd20-5b9211e2135f#MD_DataIdentification
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:35.161 [print] https://inspire.ec.europa.eu/documents/technical-guidance-implementation-inspire-view-services-1
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:35.162 [print] "Waterschappen Administratieve eenheden INSPIRE";"Technische specificatie waarmee de service volledig conform is";"VERORDENING (EG) Nr. 976\/2009 VAN DE COMMISSIE van 19 oktober 2009 tot uitvoering van Richtlijn 2007\/2\/EG van het Europees Parlement en de Raad wat betreft de netwerkdiensten";"Deze service voldoet aan de specificaties voor spatial data services";"conform specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:35.163 [print] "true";"true";"true"
76
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"684ff4f6-1652-45a8-93f0-8e16d37b2a66","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.325:82]
7d641d0e-c04b-4191-833e-c578ac2abe5f
ms: 515
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.697 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '7d641d0e-c04b-4191-833e-c578ac2abe5f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
502
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7d641d0e-c04b-4191-833e-c578ac2abe5f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:35.206 [print] https://haleconnect.com/ows/services/org.874.cb9ca55e-f4e7-4bd8-a02e-75d528e22118_wfs/org.874.83f948b1-9293-4926-b64d-40857c792f1e?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:35.207 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:35.208 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:35.208 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:35.209 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:35.209 [print] https://haleconnect.com/services/bsp/org.874.83f948b1-9293-4926-b64d-40857c792f1e/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:35.210 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:35.211 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:35.212 [print] true
76
* eval db.writeln('"7d641d0e-c04b-4191-833e-c578ac2abe5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"7d641d0e-c04b-4191-833e-c578ac2abe5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"7d641d0e-c04b-4191-833e-c578ac2abe5f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.326:82]
8a772a52-d659-47b3-a131-82398fb78664
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.796 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
1
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '8a772a52-d659-47b3-a131-82398fb78664'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
515
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a772a52-d659-47b3-a131-82398fb78664'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
1
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
1
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
1
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:35.320 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/service/atom/id_predefined_dataset
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:35.321 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:35.322 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:35.322 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:35.323 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:35.323 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:35.324 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:35.325 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:35.326 [print] true
76
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"8a772a52-d659-47b3-a131-82398fb78664","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.327:82]
c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217
ms: 530
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:34.935 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
517
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:35.460 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wms?SERVICE=WMS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:35.461 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:35.461 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:35.461 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:35.462 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:35.462 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:35.463 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:35.464 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:35.465 [print] true
76
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
0
77
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"c1ea0e3f-e8e2-4f25-aae8-f24ec6ee8217","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0
Scenario: [1.328:82]
12505d53-a942-467e-a462-ddbe5ac6467f
ms: 517
>>
Background:
5
* url 'http://nationaalgeoregister.nl/'
0
04:56:35.166 karate.env system property was: null
6
* def mystorage = Java.type('storage.DataStorage')
0
7
* def db = new mystorage
0
8
* def db = db.setfeature(karate.info.featureFileName)
0
9
* def separator = java.lang.System.getProperty("file.separator")
0
10
* def idfile = "file:" + db.outputpath("T01_ids").getAbsolutePath() + separator + 'idsService.json'
0
11
* def list = karate.read(idfile)
0
12
* def outputpath = db.outputpath()
0
13
* eval db.ensureDirectory(outputpath)
0
22
Given url 'http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire'
0
23
And param service = 'CSW'
0
24
And param version = '2.0.2'
0
25
And param request = 'GetRecordById'
0
26
And param id = '12505d53-a942-467e-a462-ddbe5ac6467f'
0
27
And param elementsetname = 'full'
0
28
And param outputSchema = 'http://www.isotc211.org/2005/gmd'
0
29
When method get
503
30
Then status 200
0
31
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '12505d53-a942-467e-a462-ddbe5ac6467f'
1
33
* def scopecode = get response //MD_Metadata/hierarchyLevel/MD_ScopeCode/@codeListValue
1
34
* def title = get response //citation/CI_Citation/title/CharacterString
1
35
* def email = get response //electronicMailAddress/CharacterString
1
36
* def organisationpath1 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/Anchor')
1
37
* def organisationpath2 = karate.get('//MD_Metadata/contact/CI_ResponsibleParty/organisationName/CharacterString')
1
38
* def organisationpath = organisationpath1 !== "#notpresent" ? organisationpath1 : organisationpath2
0
39
* def metadataStandardVersionpath = karate.get ('/GetRecordByIdResponse/MD_Metadata/metadataStandardVersion/CharacterString')
0
40
* def MD_DataIdentificationCitationAnchor = karate.get ('/GetRecordByIdResponse/MD_Metadata/identificationInfo/MD_DataIdentification/citation/CI_Citation/identifier//@href')
0
43
* string connectrawUrl = karate.get ('/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/linkage/URL')
0
44
* string connectUrl = db.getCorrectedUrl(connectrawUrl)
0
45
* print connectUrl
0
04:56:35.676 [print] https://haleconnect.com/ows/services/org.874.28716afd-1e98-4623-9239-8abbd9249408_wfs?SERVICE=WFS&Request=GetCapabilities
49
* string protocol1 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/Anchor')
1
50
* print protocol1
0
04:56:35.677 [print] #notpresent
51
* string protocol2 = karate.get ( '/GetRecordByIdResponse/MD_Metadata/distributionInfo/MD_Distribution/transferOptions/MD_DigitalTransferOptions/onLine/CI_OnlineResource/protocol/CharacterString')
1
52
* print protocol2
0
04:56:35.678 [print] #notpresent
53
* string protocol = protocol1 ? protocol1 : protocol2
0
54
* print protocol
0
04:56:35.678 [print] #notpresent
55
* string operateson = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/operatesOn/@href
1
56
* print organisationpath
0
04:56:35.679 [print] Koninklijk Nederlands Meteorologisch Instituut (KNMI)
57
* print operateson
0
04:56:35.679 [print] https://haleconnect.com/services/bsp/org.874.28716afd-1e98-4623-9239-8abbd9249408/md/dataset/dataset1#xpointer%28%2F%2Fgmd%3AidentificationInfo%5B1%5D%2Fgmd%3AMD_DataIdentification%29
59
* string servicetype = get response //MD_Metadata/identificationInfo/SV_ServiceIdentification/serviceType/LocalName
1
62
* string conformanceHref = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//@href
1
63
* string corConformanceHref = db.getCorrectedString(conformanceHref)
0
64
* print corConformanceHref
0
04:56:35.680 [print] #notpresent
66
* string conformanceTitles = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//CharacterString
1
67
* string corConformanceTitles = db.getCorrectedString(conformanceTitles)
0
68
* print corConformanceTitles
0
04:56:35.681 [print] "Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"Commission Regulation (EC) No 976\/2009 of 19 October 2009 implementing Directive 2007\/2\/EC of the European Parliament and of the Council as regards the Network Services";"See the referenced specification"
69
* string conformancePass = get response //MD_Metadata/dataQualityInfo/DQ_DataQuality/report[*]//Boolean
1
70
* string corConformancePass = db.getCorrectedString(conformancePass)
0
71
* print corConformancePass
0
04:56:35.683 [print] true
76
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + corConformanceHref + '","' + corConformanceTitles + '","' + corConformancePass + '"' , db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '_conformance.csv')
1
77
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's.csv')
0
78
* eval db.writeln('"12505d53-a942-467e-a462-ddbe5ac6467f","'+ title + '","' + connectUrl + '","' + protocol + '","' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '","'+ email + '","' + (metadataStandardVersionpath ? metadataStandardVersionpath : 'no metadatastandard path found') + '","' + operateson + '","' + db.getdatasetuuid(operateson) + '","' + servicetype + '"', db.outputpath() + separator + scopecode + 's-' + (organisationpath ? organisationpath : 'no organisationName found in dataset record') + '.csv')
0